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! / Sprite movement?

Author
Message
Jonny_S
21
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 7th Jan 2003 00:03
Ok as you may well notice im a 2D supernoob!
I relise that these to commands make the sprite move up and down but what about side to side? i.e left/right?
if upkey()=1 then move sprite 1,2
if downkey()=1 then move sprite 1,-2
monkey by day, crime fighting sex god by night
Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 7th Jan 2003 00:19
if I was you I would draw the sprite in the loop like this



Hope this helps

* If the apocalypse comes, email me *
Matigus
21
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Costa Rica...bc im a bad person
Posted: 14th Jan 2003 20:50
ok this is what i do for 2D



that makes them move, and for me it is easier than move sprite x,1
Matigus
21
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Costa Rica...bc im a bad person
Posted: 14th Jan 2003 20:51
email me if u need any more help at pk_er@msn.com
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 23rd Feb 2003 05:56
Sprites have direction
"Move Sprite n, velocity" moves a sprite up because the default is up

to move right "Rotate Sprite n, 90" the issue a move command

CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 23rd Feb 2003 06:28
rotate sprite
any angle 0 - 360
move sprite then moves it stright in the angle it's facing
that simple.

If you don't want it to rotate use what kangaroo2 showed

Login to post a reply

Server time is: 2024-04-16 12:06:59
Your offset time is: 2024-04-16 12:06:59