Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / sprite moves faster then object its paisted to

Author
Message
Daniel wright 2311
User Banned
Posted: 5th Jun 2012 06:21
Ok,so I am paisting a animated sprite to the position of a moving object,after some time,not even 20 frames my sprite moves to the front of the object taking the sprite off the screen. here is my move code. HELP!!!!



my signature keeps being erased by a mod So this is my new signature.
zeroSlave
17
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 5th Jun 2012 06:31 Edited at: 5th Jun 2012 06:31
It's because of the perspective. There is some math that can be used to get the values, but object screen x/y works pretty well. Maybe try something like this?:


Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.
Daniel wright 2311
User Banned
Posted: 5th Jun 2012 06:45
That worked well my friend,thank you,its perfect

my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-08 12:26:52
Your offset time is: 2026-07-08 12:26:52