Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Out-Of-Nowhere Object Event?

I'm having a bit of trouble. First, I have an event set up before this, and it works. But when it comes time for the object to fly out of nowhere, it doesn't happen.

Scenario:

A man walks up to a gate-like structure, thinks to himself, and then out of nowhere, a ball (which I'm using a jewel sprite for) flies towards him. He fortunatly backs up a space, and the ball comes to a stop close to him.

Can anyone make one, or maybe two events that'll cover this?
 
You can create a blank event for the ball, and then use the "set move route" command to have it change its graphic to that jewel, which would make it appear as though it's coming out of nowhere.
 

boon

Sponsor

Regimos":3rs29guz said:
In the same event, you can use "Set Move Route" for both the ball and the player to move. Be sure to include "wait" commands.
Doesn't the "Proceed with Movement" Command work so much better then the wait commands?

Or are you saying to have them move like 2 seconds apart.

Create an event that's blank unless so and so  switch is on. When your gate event runs, switch that switch on. Have the event with the image ball set move route, and set it to move towards player as many tiles as you want it to.

Say for the gate event
Code:
> Switch 007 = ON
> Set move route [Eventball]
> : Move towards player (basically repeat until the ball is ONE tile away)
> Proceed with Movement
> Set move route [Player]
> : Move backwards
> Proceed with Movement
> Set Move Route [eventball]
> : Move (direction you want it to) - repeat until offscreen
> Proceed with Movement
> Switch 007 = OFF
> Wait 1 Frame
> Self Switch A = ON

then create a new page with the conditions Self Switch A = ON

And leave it blank. The event will never run again, unless you mess around with it.

Hope that Helps.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top