Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making the up and down sprite not move until able
#1
lets say my character is in a tight spot with blocks around him

B B B B B B B
-----------,--- (Comma is character)
B B B B B B B

How can I make it so when you press the up arrow, he doesn't look up until able to move up
same with down.

is this possible?
Reply
#2
I don't know how to code very well..more of adding stuff from stuff thats there..like text and colours and stuff..but not really at this kind of stuff..

I found some codes for the movement

what would i do,
like eh

if i created vb. it would probably be the code:
If DIR_UP = No movement Then
Disable DIR_UP sprite
End If


lol..shows how much I know

do u think you might show me how to get started ^^ ?
Reply
#3
OMG
lol


thanks so much. 1 million reps fer u Big Grin
Reply
#4
Lea Wrote:Sub canmove client side

find

Code:
If DirUp Then
        Call SetPlayerDir(MyIndex, DIR_UP)

change to

Code:
If DirUp Then
        'Call SetPlayerDir(MyIndex, DIR_UP)

Repeat for down, left, and right
Basicly remove that packet.
Reply
#5
this gave me a start of where to look, and as you may have seen in my side scroller post, I made it so he can still go up when he needs to (at my ladder)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)