Jump to content

Photo

Fire button in TI-BASIC on the TI-99/4A


3 replies to this topic

#1 Synthead OFFLINE  

Synthead

    Chopper Commander

  • 202 posts
  • Location:Seattle, WA

Posted Thu Apr 15, 2010 3:38 PM

What command could I use to sense the fire button on the joysticks in TI-BASIC?

#2 1980gamer OFFLINE  

1980gamer

    Dragonstomper

  • 986 posts
  • Location:Charlton, MA

Posted Thu Apr 15, 2010 4:08 PM

it has been a while....
but i think it is
call key(0,k,s)
if k=18 then FIRE.... your firing sound, sprite movement etc.

Gene

#3 Synthead OFFLINE  

Synthead

    Chopper Commander

  • Topic Starter
  • 202 posts
  • Location:Seattle, WA

Posted Thu Apr 15, 2010 10:32 PM

it has been a while....
but i think it is
call key(0,k,s)
if k=18 then FIRE.... your firing sound, sprite movement etc.

Gene


Nice! call key(1,x,y) and call key(2,x,y) works great!

#4 retroclouds OFFLINE  

retroclouds

    Stargunner

  • 1,698 posts
  • Location:Germany

Posted Fri Apr 16, 2010 10:52 AM

If you are in to programming TI-Basic you might also want to check our TI-99/4A Games Programming subgroup at atariage.

Check out the development resources sticky thread for manuals on programming Basic and Extended Basic.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users