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.

[XP] Event Activated Events

Hey people!  I need to know, is there a way to make an event activate when it touches another event?  It's kind of like player touch, but it works with events as well.

Ok, that was question one; on to question two.  Is there a way to make a conditional branch that will check if a player/event is standing on a particular spot?

Yeah, I am a pretty big eventer, but I'm not sure about these things.  Do I need a script to do this stuff, or am I missing something?  Thanks in advance for the help!
 

Kraft

Sponsor

use variables ^_^  Have the variables check the heroes X and Y position and then have a conditional branch in another event check if the hero is standing on X and then if so, check for if the hero is standing on Y place...

It takes 2 variables... and a lot of annoying brainwork, but it does work.

Same thing for the events touching events  (I presume you are trying to get a "push a crate onto a switch to hold it down" kind of puzzle.  It works the same way, only you need 4 variables.  1 for the hero X, 1 for the hero Y, 1 for the crate X and 1 for the crate Y.

Yeah... hopefully you can figure it out from there... because it would take half a page of me typing to explain it all out ^_^

~Kraft
 
Or if you're a script-eventer like me, you can use the script function in Conditional Branches. Something like
Code:
Conditional Branch: Script: $game_player.x == #
  Conditional Branch: Script: $game_player.y == #

It saves variables.  :tongue2:

And for the event collision stuff, you can do
Code:
Conditional Branch: Script: $game_map.events[id].x == $game_map.events[id].x+1

It's a bit more annoying, you need to do it 4 times to check all 4 directions, but it's the same with variables.
 
I just now ran into a similar issue.. Hope you guys might be able to give me some advice..

What I've got is an NPC whose movement activates after a cutscene via a switch.. When he gets to the desired point, the character is allowed to move etc.. Now, I have set up in front of the newly located NPC another event with a switch set on player touch so that when the Hero reaches the event tile the NPC will move again in a new pattern I have designated.. The issue is, when the Hero reaches this tile, the game freezes.. Can anyone give me some advice or tell me what I'm doing wrong? I'm fairly new to this and I'm just now getting used to working with switches and variables.. If you need more details about the code I used, event placement, switch placement, etc.. let me know! Help is appreciated.  :thumb:
 
Need more details. Sounds like you might be moving someone into something that isn't passable. To prevent this, you should check "Ignore if can't move" in the Set Move Route command or simply not try to move anything onto non-passable tiles.
 
It wasn't that, I'm not exactly even sure what it was but I found myself tweaking a few things, and I assumed that it was exactly the same as the original way I put it but apparently I changed something that made it work.. What sucks is that I don't know what it was.. If I ever run into a similar problem, I'll be sure to share it.. Thanks..
 

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