Leaving the play area (problem)
Hello all!
I'm testing my alley cat 2 game and sometimes the cat leaves the play area and disappears. I have set:
When the cat leaves the play area -----> the cat stop/bounce
but I don't know why it doesn't fix the problem.
How can I do to force the cat to remain always in the screen?
Thanks
Re: Leaving the play area (problem)
It depends on how you're moving the player object, but to make certain that the object doesn't move out of the screen, I'd set up the events to position it back in the screen directly:
+ X Left("Cat") < 0
-> Set X position of "Cat" to 0
+ X Right("Cat") > Frame Width
-> Set X position of "Cat" to Frame Width
And similar events for the Y co-ordinates... the actual values you check against will depend on the size, shape, etc. of the cat.
Re: Leaving the play area (problem)
To move the cat I use the platform movements in mmf2. However I don't know why sometime it goes out the screen even if I set:
When the cat leaves the play area -----> the cat stop/bounce
Re: Leaving the play area (problem)
I've also had little success with the "Test object position" events, like leaving the play area. How are these supposed to work? Also do similar events, such as destroy an object when they leave the play area, and they don't work. Is this something being addressed or are we doing something wrong?
Thanks for your time, and sorry if this is something that's already been talked about.
Re: Leaving the play area (problem)
Re: Leaving the play area (problem)
Test position does not work? THis maybe one of the most tested part of MMF. Can you send me an example where it does not work?