View Single Post
 
Reply
Posted 2006-03-18, 06:16 PM in reply to Lenny's post starting "You should have Movie Maker. Look..."


Alright, we're assuming that Orange is the object to be pushed off of the cliff. Red is the "pusher", and Yellow is the target square.

I'll also assume these points:
  • Yellow is a square that any character can land on. IT IS NOT AN EVENT.
  • The "hero" is hidden. Either set the transparency before this event, or (if this is the "first" map), the hero's sprite is set to a blank charset.
  • Orange is an event that is the same layer as the hero.
  • You have a "master" event somewhere, set on autostart, with only one page, no preconditions.


Alright, this is easy. Your "master" event will start as soon as this map is loaded.

First, determine which direction you're going to have Orange jump in. In this case, we're heading east.

Now, we'll have Orange jump, which is a simple "Move Event" command. You'll want to do the following, with Orange:

Code:
Face Right (<-- Direction we're going, in 3-d)
Lock Facing
Start Jump
Right
Right
Right
Down
Down
Down
Down
Down
End Jump
Unlock Facing
Easy enough, Orange will jump to the Yellow square, which is 3 moves to the right and 5 down.

After you get that set up, you might want to tweak the presentation a little. You can have Red and Orange start offscreen, use a Move Event to move them both onscreen and to the edge of the cliff, and then have Red run behind Orange and ram into him, activating our little jumping script.

You can also have Orange get knocked offscreen, (as long as you have a target square for him to land on), and then Pan Screen down to where he is, after a Wait Command or something.

COLORS
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube