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! / Please tell me what's wrong with my code.

Author
Message
Seraf
21
Years of Service
User Offline
Joined: 22nd Feb 2004
Location:
Posted: 23rd Apr 2005 07:34
I can't seem to get my image to move when I press the Rightkey, it would be greatly appreciated if somebody could please help me. ^^


sync on
sync rate 40
hide mouse

`Begin player setup
load image "ship.png",1
sprite 1,shipX,shipY,1

`player coordinates
shipX = 30
shipY = 50

if rightkey() = 1 then shipX = shipX - 10
if leftkey() = 1 then shipY = shipY + 10
zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 23rd Apr 2005 08:35
I answered this in the newcomers board. try not to post the same question in multiple boards. It can get quite confusing.

~zen


Sergey K
21
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 1st Jun 2005 23:57
well first of all get off the "sync on" command.. u dont need that

ah and u need to loop that..

put
in loop..

By the time you finish reading this, you realize you have wasted 5sec. of your life!
click here to return your 5sec.

Login to post a reply

Server time is: 2025-05-17 10:26:53
Your offset time is: 2025-05-17 10:26:53