I'm looking to create a custom top/down engine (or 8 direction movement) engine using events only. I've got most of it working, but I can't seem to get the Move Safely 2 object working the right way. The reason I need this working is because when I run into a wall, I want my character to STOP and not just bounce off the wall. (I'm using a detector for this, with sprites overlaying it.)
Is there any way I can get some insight on this? I'm normally good at a lot of other stuff, but when it comes to movements I'm really retarded. I'm new to MMF2 (just got it in the mail today) and I've never worked with Move Safely before until now.
It kind of makes sense, but I'm using only one detector that's a bit smaller than my sprites. The problem is the fact that I can't use the regular 8 Dir movement because my character bounces. Ergo, my character is on "Static" so I can't rightly use "stop movement". I tried a few other things that just get my character stuck. It's really a downer here. In the past I never worried too much about this stuff, but now it's very important.
For some reason it's not working. It's set up right, Radix, just like you put on there, but it's not moving at all...I'm confused because I know I've done something like this before...
Okay, thanks for the help guys. Jerry, the way I had been working with my game did not require the method you used, but I do know that method works and is a great way of doing it.
Radix, I took a bit of what you said and did it a bit different. Below is an example of what I did:
{
o Always
---- Deactivate group "Move Up"
---- Deactivate group "Move Down"
---- Deactivate group "Move Left"
---- Deactivate group "Move Right"
o Repeat while "Up Arrow" is pressed
---- Activate Group "Move Up"
GROUP MOVE UP
o Always
+ X ("Player") is overlapping a backdrop
---- Set Y position to Y("Player")-1
o Always
+ ("Player") is overlapping a backdrop
---- Set Y position to Y("Player")+1
}
Of course, make changes in accordance to the direction you're moving. This is, for the most part, flawless. Make sure to check the box next to "Collision with box" for your sprites set as obstacles, and also set your detector to do the same. This requires your detector to be set as "Static" under Movements as well.
I do not doubt that Radix, but I'm using MMF2 and maybe they changed the way a few things work. As I said, I feel as though I had done that before, but it just didn't work.
"I'm using MMF2 and maybe they changed the way a few things work."
No, they probably wouldn't, for backwards compatibility. And because positioning functions and fastloops don't need to be changed, because they already work as they're supposed to.
So anyways, even if yours works, Radix, it inspired the way I did mine, and for that I am thankful. Now here we do have a flawless engine. And for that I am thankful. For now my game can be made as it should be, and for that I am thankful.
Thanks a million yet again, a thousand times "thank you",
~Roar