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.

Code Snippets / Moving an object left or right

Author
Message
Kivu_Rako
20
Years of Service
User Offline
Joined: 10th May 2004
Location:
Posted: 12th May 2004 17:07
okay i am creating a game, and i cannot get my main object to move left or right.
how could i do this
it is positioned at x#,y#,z# but when this happens:
"
if keystate(30)=1
x#=x#-10
endif
if keystate(32)=1
x#=x#+10
endif
"
it doesnt move. And yes positioning the object at x#,y#,z# is in the main loop
please help
probable easy too
thx


"geez, its probably a noobish mistake too!"
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 12th May 2004 21:54
No questions here

CURRENT PROJECT: RETRO PAC-MAN
malcolm
20
Years of Service
User Offline
Joined: 1st Mar 2004
Location:
Posted: 14th May 2004 20:31
code to move a object

left
right
up
down
slide left
slide right
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 15th May 2004 01:56
His newer than me, give him a chance.

Infra-Dark

Login to post a reply

Server time is: 2024-11-23 21:55:59
Your offset time is: 2024-11-23 21:55:59