Problems with Event Spawn / Event to Event Touch

timox99

Warper
Member
Joined
Apr 9, 2014
Messages
2
Reaction score
0
First Language
germna
Primarily Uses
Hello, community,


currently i am working on an Avatar Fan project. (RPG Maker MV)

Here I wanted an out-of-battle elemental system to be used.

Means players press "K" and a flame spawns and a corresponding events react to the flame.


Example: I press the appropriate button -> Fire Event Spawns and touch the Torch-Out event, it activates its Self-Switch and becomes Flame ON.


Currently I am ready to create events with the YEP-EventSpawner Plug-In from Yanfly Events, which spawn in front of me and despawns after 2 movements.


Common Event Feuer Spawn.png

Now I thought there would be massive plug-ins for event to event touches, but here I found only 1 plug-in which did not work.

Now my questions would be, how do I implement this system best?


- Do you know another way to implement this elementary system?

- Maybe there is a good plug-in for Event to Event touch?

- Is it possible to save the X,Y position of the flame via variables and then compare it with the event to be reacted?


Many thanks in advance
 

ozubon

surströmming?
Veteran
Joined
Oct 16, 2018
Messages
178
Reaction score
168
First Language
English
Primarily Uses
RMMV
The event to event touch system for my game is currently unusable in any other context, but I've been thinking a simple working event to event touch plugin should exist. I could adapt my system to work without dependencies but I'm busy so it'll take a day or two probably!
 

timox99

Warper
Member
Joined
Apr 9, 2014
Messages
2
Reaction score
0
First Language
germna
Primarily Uses
Found the solution.
i put this code on torch event, on name == "change me" i put the Fireevent name.

Code:
Code

    var otherEventsOnThisTile = $gameMap.eventsXy(this.character(0).x, this.character(0).y).filter(function(e) { return e !== this.character(0) }.bind(this));
    var mapid = $gameMap._mapId;
    var eventid = this._eventId;
    var key = [mapid, eventid, 'A'];
    if (otherEventsOnThisTile.length > 0 && otherEventsOnThisTile[0].event().name == "change me") {
      $gameSelfSwitches.setValue(key, true);
    } else {
      $gameSelfSwitches.setValue(key, false);
    }
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,859
Messages
1,017,037
Members
137,566
Latest member
Fl0shVS
Top