Dragnerok X Posted December 12, 2006 Share Posted December 12, 2006 (edited) So I've got some movement code like this... 33 if a = 1 && b = 15 then x = x + 1 34 if a = 2 && b = 15 then x = x + 2 : y = y - 1 35 if a = 3 && b = 15 then x = x + 1 : y = y - 1 36 if a = 4 && b = 15 then x = x + 1 : y = y - 2 37 if a = 5 && b = 15 then y = y - 1 38 if a = 6 && b = 15 then x = x - 1 : y = y - 2 39 if a = 7 && b = 15 then x = x - 1 : y = y - 1 40 if a = 8 && b = 15 then x = x - 2 : y = y - 1 41 if a = 9 && b = 15 then x = x - 1 42 if a = 10 && b = 15 then x = x - 2 : y = y + 1 43 if a = 11 && b = 15 then x = x - 1 : y = y + 1 44 if a = 12 && b = 15 then x = x - 1 : y = y + 2 45 if a = 13 && b = 15 then y = y + 1 46 if a = 14 && b = 15 then x = x + 1 : y = y + 2 47 if a = 15 && b = 15 then x = x + 1 : y = y + 1 48 if a = 16 && b = 15 then x = x + 2 : y = y + 1 ...if I run it with b = 15, it runs too blockily, but without it, it runs way too fast? What do you use to allow slow, smooth, movement? Here's the source. Combat_DX.bas Thanks! Edited December 12, 2006 by Dragnerok X Quote Link to comment https://forums.atariage.com/topic/98481-quick-movement-question/ Share on other sites More sharing options...
+atari2600land Posted December 12, 2006 Share Posted December 12, 2006 What I'd do is change line 4 to read "if b=16 then b=0" and then change lines 6 & 7 to read 6 if joy0left && b = 2 then a = a + 1 7 if joy0right && b = 2 then a = a - 1 if that's too fast, try inserting b=3 or b=4 instead of b=2. Quote Link to comment https://forums.atariage.com/topic/98481-quick-movement-question/#findComment-1193313 Share on other sites More sharing options...
Recommended Posts
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.