View Single Post
  #3   Spotlight this post!  
Unread 14-02-2003, 08:37
Jonbca Jonbca is offline
Registered User
#1084
 
Join Date: Jan 2003
Location: Sarnia
Posts: 9
Jonbca is an unknown quantity at this point
#3 you could do something like this

old_Y VAR byte
old_X VAR byte

old_Y = p1_y
old_X = p1_x
...
...
...

MAINLOOP:
gosub INPU
IF p1_y > old_Y THEN
p1_y = ((p1_y - old_Y) / 2) + old_Y
ELSE
IF p1_y < old_Y THEN
p1_y = ((old_Y - p1_y) / 2) + p1_y
ENDIF
ENDIF
' do same for p1_x
...
...
...
goto MAINLOOP


This would make the input be scaled based on the previous value instead of just jumping.
__________________
I can imagine a world without hate, a world without fear, a world without war. And I can imagine us attacking that world, because they would never expect it.