Movement-related questions
These are probably easy to do, but I would rather ask here than try to figure it out myself.
NOTE: This took a little explaining. A good knowledge of Donkey Kong Country might help you answer my questions, since this is a DKC fan game which I'm creating.
Ok, I have two objects: Donkey Kong, and a Barrel Canon (of which there are several instances). When Donkey Kong hits a barrel, he gets destroyed, and it then stores the fixed value of this barrel in a global value.
When the player presses a key to fire, I want to create Donkey Kong and then automatically move him to the X,Y position of the barrel that Donkey Kong just landed in a moment ago
How do I compare to the fixed value stored earlier to do something like "move Donkey Kong to X,Y of (fixed value)" where (fixed value) is the instance of the object I want to move him to?
-------------------
Ok, next question! This question should be a lot simpler.
After I move Donkey Kong to that barrel, how do I make him move as if I were using the "shoot object" action?
-------------------
What I'm trying to accomplish is to shoot Donkey Kong as an active object, rather than just a bullet that only goes in one direction then disappears off-screen.
Re: Movement-related questions
BUMP
*AHEM* When I first posted this topic it went straight to the 2nd page! Now it's almost on the 3rd, and I don't want my question to get buried with the rest of 'em.
Re: Movement-related questions
I think it still is not so clear what you want to do.
You could give "Donkey Kong" a bouncing ball movement. With that he will move in a straight line, like a shot object.
As you seem to use MMF2, you can assign multiple movements to an object.
So if it's usually a platform movement, also give it a bouncing ball movement. When you position him to the barrel, make that movement active, set the direction to up and the speed to 50 or whatever.
You could then have a condition that checks if he touches an obstacle or doesn't overlap the barrel any more and then changes the movement back to platform movement.
Re: Movement-related questions
Ok, thanks! Thats all I needed to know. I forgot you can use multiple movements in MMF2. It works perfectly now!