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.

AppGameKit Classic Chat / how do i make a sequence of movements?

Author
Message
kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 3rd Mar 2013 16:37
how would i make a sprite perform a sequence of movements?.. i.e make the sprite more 10 to the right then back to the left.

kirtnicholls
basjak
14
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 3rd Mar 2013 16:57
do you mean let the sprite go forward and backward?

look at my example in the post:
http://forum.thegamecreators.com/?m=forum_view&t=194268&b=41

kirtn14
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 5th Mar 2013 11:16
Do i do the same to get the sprites to move down aswell, in creating space invaders so need the aliens to move

kirtnicholls
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 6th Mar 2013 16:28
For Space Invaders, you would move the aliens down when they get to the edges of the screen. You could add 2 invisible sprites along the edges and use sprite collision to check when an alien gets to the edge, then reposition the aliens down and reverse the x direction. Or you could check the distance from the edge, whichever you prefer.

Login to post a reply

Server time is: 2024-11-24 09:48:04
Your offset time is: 2024-11-24 09:48:04