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.

2D All the way! / help my wait is stupid

Author
Message
justinHeintz
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location: my house
Posted: 14th Dec 2003 17:12
hes my problem i have
sprite 1,x,y,1
wait 55
sprite 1,x,y,2
and so on. how would i fix it so when other sprites move the dont go to fast but they dont have a wait command ?

Justin Heintz
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 14th Dec 2003 18:45
You could move sprites in smaller distances. You might think that 1 pixel is the smallest distance that a sprite can move, but it is possible to change the X/Y coords in smaller distances like #0.01. Then the sprite moves much slower, although it is still moving 1 pixel at a time.
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 14th Dec 2003 23:25
use a timer to make the sprite move.

Lifes short, try to enjoy it and not take it to seriously!
justinHeintz
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location: my house
Posted: 14th Dec 2003 23:31
timer works better

Justin Heintz
justinHeintz
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location: my house
Posted: 20th Dec 2003 21:57 Edited at: 20th Dec 2003 21:58
but i cant get it to work show me how

Justin Heintz
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 20th Dec 2003 22:48
A simple example of using the timer() to control sprite movement.



dbpro : p166mmx @ 233 : 256mb : sb 128pci : sis onboard
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 20th Dec 2003 23:06
Quote: "but i cant get it to work show me how"


Quite demanding arent we Not a very good way to get help, please and thank you and other manners are always nice



Untested, but should work.

RPGamer


Dont forget to Join the Forums!
justinHeintz
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location: my house
Posted: 21st Dec 2003 01:38
thanks for your help

Justin Heintz

Login to post a reply

Server time is: 2024-05-11 06:47:49
Your offset time is: 2024-05-11 06:47:49