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 / code won't work

Author
Message
mike5424
15
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 4th Apr 2009 10:27
here is what i have so far:

do
If keystate(17)=1 then move object up 1,.5
IF KEYSTATE(31)=1 THEN MOVE OBJECT down 1,-.5
IF KEYSTATE(30)=1 THEN MOVE OBJECT LEFT 1,.3
IF KEYSTATE(32)=1 THEN MOVE OBJECT RIGHT 1,.3
if object collision (1,2)
inc score#,1
position object 1,0,0,0
loop

i have also made the objects but they don't matter what is wrong with it though i need it to loop but it says it is out of place plz help thx

www.madninjas.co.nr we are mad and we are ninjas
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Apr 2009 13:00
Missing an Endif:



mike5424
15
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 5th Apr 2009 12:08
thanks it works now

www.madninjas.co.nr we are mad and we are ninjas

Login to post a reply

Server time is: 2024-09-28 04:23:29
Your offset time is: 2024-09-28 04:23:29