| Mirage Source http://miragesource.net/forums/ |
|
| Making the up and down sprite not move until able http://miragesource.net/forums/viewtopic.php?f=201&t=4741 |
Page 1 of 1 |
| Author: | Poyzin [ Sun Nov 16, 2008 12:04 am ] |
| Post subject: | Making the up and down sprite not move until able |
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? |
|
| Author: | Lea [ Sun Nov 16, 2008 12:20 am ] |
| Post subject: | Re: Making the up and down sprite not move until able |
look at the movement code client side |
|
| Author: | Poyzin [ Sun Nov 16, 2008 1:54 am ] |
| Post subject: | Re: Making the up and down sprite not move until able |
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 ^^ ? |
|
| Author: | Lea [ Sun Nov 16, 2008 2:02 am ] |
| Post subject: | Re: Making the up and down sprite not move until able |
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 |
|
| Author: | Poyzin [ Sun Nov 16, 2008 2:07 am ] |
| Post subject: | Re: Making the up and down sprite not move until able |
OMG lol thanks so much. 1 million reps fer u |
|
| Author: | William [ Sun Nov 16, 2008 3:47 am ] |
| Post subject: | Re: Making the up and down sprite not move until able |
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. |
|
| Author: | Poyzin [ Sun Nov 16, 2008 3:59 am ] |
| Post subject: | Re: Making the up and down sprite not move until able |
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) |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|