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.

Newcomers DBPro Corner / How do i do this

Author
Message
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 2nd Jan 2006 12:34
Yo, all.
i need some help for my game.
i have just started and i want my bird to change position every half second or so. i have two sprites(wingsup,wingsdown).
I don\'t want to lower the sync rate, but i dont want the birds wings to flap every micro second. please help me.

LO
crighton
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: In your soup.
Posted: 2nd Jan 2006 12:45
use a timer()



hope that helps

aye!
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 2nd Jan 2006 14:16
thnxs.
but i'm kinda a newb.
could u please explain the cide to me

LO
crighton
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: In your soup.
Posted: 2nd Jan 2006 16:29 Edited at: 2nd Jan 2006 16:30
ok

lets say u loaded ur images(sprites)

we then make a variable to control what image is shown on the sprite.



im using 1 and 2, but u can use what ever the image numbers are that u have loaded in.

we then time the routine and update when a certain amount of time has passed



hope thats a little clearer. 3 am here again. so forgive my spelling.


aye!
crighton
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: In your soup.
Posted: 2nd Jan 2006 16:31 Edited at: 2nd Jan 2006 16:32
oh and this is a really good place to start
http://forum.thegamecreators.com/?m=forum_view&t=59347&b=7

cheers
crighton


aye!
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 2nd Jan 2006 19:26 Edited at: 2nd Jan 2006 22:07
all solved.
thnx for all your help!

LO
crighton
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: In your soup.
Posted: 3rd Jan 2006 04:14
np.



aye!

Login to post a reply

Server time is: 2024-11-27 07:53:54
Your offset time is: 2024-11-27 07:53:54