Jump to content



Photo
- - - - -

Help Programming Games On 9750g Plus


  • Please log in to reply
3 replies to this topic

#1 robhart

robhart

    Newbie

  • Members
  • Pip
  • 7 posts

  • Calculators:
    FX-9750g plus

Posted 25 May 2007 - 01:31 AM

here is an example of what im trying but it isnt working :profanity: :banghead:
A :arrow: 10:B :arrow: 4
Locate A,B,"----"
getkey :arrow: C
C=27(right arrow code)=>(jump) A+1 :arrow: A
Locate A,b,"----"

which should make the bar go to the right but wenever i press the right arrow it just exits the program. i want it to move right NOT exit the program :profanity: :banghead: :profanity: :banghead:
plus how do you add time into games like seconds and stuff im very new at this

#2 kucalc

kucalc

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1422 posts
  • Gender:Male
  • Location:USA
  • Interests:Programming: C/C++, Fortran, LISP, COBOL 85 Standard, PHP, x86 and SH3 Assembly

    Computer graphics

  • Calculators:
    fx-9860G / fx-7400G Plus / Algebra FX 2.0+ / fx-9770G / CFX-9850G / CFX-9850GB+ / TI-89 / TI-nSpire

Posted 25 May 2007 - 04:59 AM

A :arrow: 10:B :arrow: 4


You assign numbers to variables, not variables to numbers.

I believe this is how the program should be written:

1 :arrow: A :newline:
4 :arrow: B :newline:
Locate A, B, "----" :newline:
Lbl 1 :newline:
GetKey :arrow: C :newline:
If C=27 :newline:
Then A+1 :arrow: A :newline:
ClrText :newline:
Locate A, B, "----" :newline:
IfEnd :newline:
Goto 1 :newline:

Tell me if it works on the fx-9750g.

#3 robhart

robhart

    Newbie

  • Members
  • Pip
  • 7 posts

  • Calculators:
    FX-9750g plus

Posted 25 May 2007 - 10:52 AM

thanks alot man :greengrin:
i knew about the variables just wasnt payin attention :)
worked good just goes so fast i can barely see it will probably have to put a for to next loop thingy in there right ??

#4 robhart

robhart

    Newbie

  • Members
  • Pip
  • 7 posts

  • Calculators:
    FX-9750g plus

Posted 25 May 2007 - 06:28 PM

Plugged in all 4 directions now and made it go slower but now im trying to make it go to the other side when it hits a wall but its is not working quite right wenever i get to location 1 7 or 21 and stop it it goes back to the other side
it works fine if i keep moving because it doenst read the code as fast as the bar moves

i know why this happens too because it reverts but if i go fast enough it doenst have time how do i avoid this ??

EX ( not puttin everything cause im way too lazy )
IF B = 7
then 2-> B
If B= 1
Than 7->B
If A = 21
than 2 -> A
If A = 1
Than 21-> A




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users