here is an example of what im trying but it isnt working
A 10:B 4
Locate A,B,"----"
getkey C
C=27(right arrow code)=>(jump) A+1 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
plus how do you add time into games like seconds and stuff im very new at this
Help Programming Games On 9750g Plus
Started by
robhart
, May 25 2007 01:31 AM
3 replies to this topic
#1
Posted 25 May 2007 - 01:31 AM
#2
Posted 25 May 2007 - 04:59 AM
A 10:B 4
You assign numbers to variables, not variables to numbers.
I believe this is how the program should be written:
1 A
4 B
Locate A, B, "----"
Lbl 1
GetKey C
If C=27
Then A+1 A
ClrText
Locate A, B, "----"
IfEnd
Goto 1
Tell me if it works on the fx-9750g.
#3
Posted 25 May 2007 - 10:52 AM
thanks alot man
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 ??
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
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
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