Jump to content

Recommended Posts

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 by Dragnerok X
Link to comment
https://forums.atariage.com/topic/98481-quick-movement-question/
Share on other sites

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...