Jump to content
IGNORED

Very newb @ Jaguar programming. Help with Hello World


Recommended Posts

I can't get the button press to work. I tried another game that uses B to start the game and it works, but on mine it doesn't. What am I doing wrong?

 

 

How about changing your xpos init

 

from

 

dim ant_xpos% : ant_xpos=160

 

 

to

 

dim ant_xpos% : ant_xpos=160<<16

Link to comment
Share on other sites

 

I set it to one and it still didn't help.

 

Also,

 

You will need to add

 

ant_xpos = RGETOBJ(itsanant,R_sprite_x)

 

This is because you aren't updating your ant_xpos variable with the updated position.

You could add this before the "if ant_xpos>(350<<16) then call start_over_again" line.

 

If you don't do this then ant_xpos will always equal 160. Therefore it will always be 160+2.

Edited by Sporadic
Link to comment
Share on other sites

 

Also,

 

You will need to add

 

ant_xpos = RGETOBJ(itsanant,R_sprite_x)

 

This is because you aren't updating your ant_xpos variable with the updated position.

You could add this before the "if ant_xpos>(350<<16) then call start_over_again" line.

 

If you don't do this then ant_xpos will always equal 160. Therefore it will always be 160+2.

 

ant_xpos = rlist [isanant].x

 

is much more user friendly, use this method, it runs faster apparently.

 

also get my object list editor, it will ease your issues with regard to the object list creation process

Edited by omf
  • Like 4
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...