Making a bigger region for an event to get activated by?

Artonn

Villager
Member
Joined
Jul 11, 2016
Messages
21
Reaction score
3
First Language
Danish
Primarily Uses
So I'm wondering if it's possible to make the region of an event bigger, so I can interact with one event over a bigger region. So far I can only interact with an event by going into one tile but i would like to have this interaction space to be bigger/on more tiles than one.
 

cekobico

Veteran
Veteran
Joined
May 8, 2015
Messages
353
Reaction score
159
First Language
Indonesian
Primarily Uses
Say, below is a 3x3 area where you want the event to detect player's interaction. 


000
0X0


000


First, you put the main event you want to activate on X tile, and give it conditions if Switch X is on, and on Autorun. When the event is finished, turn off Switch X.


Then, make one event with empty graphic that on keypress/touch input will activate the aforementioned Switch X. Now copy that event 8x on all of the 0 tiles. 
 

Membou

Villager
Member
Joined
Jul 8, 2016
Messages
19
Reaction score
5
First Language
English
Primarily Uses
The way I've accomplished something like that in the past (and it kind of depends what you want to do) is something like this. Say you want something to happen when the player is in the space of x = 5~7, and y = 5~7.

Map.jpg


Here the forest represents the space you want the event to occur in. Next, the two empty graphic events in the corner there.

Track Movement.jpg


Next, set up variables that can track the player's X and Y coordinates on the map (also useful for other times you want to track the player's position, and not just this event), set as a parallel process.

Event.jpg


Last, I made another parallel process with the event I wanted to happen. In this case, I have a bell continuously sound whenever the player is standing in the woods. This could be more complicated as well.


Be sure in those empty graphic events if you think anything else might be passing by and have its movement blocked, make sure you check "through" so they don't stand in the way of any game choreography you might have.


It may not be exact way you want to do it in all situations, but I find this method useful.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I wrote this a long time ago, but wasn't able to find it in any of the scripts I'd posted here.  So fixing that now ...






Note - this will only be useful for events that are not moving.
 

Artonn

Villager
Member
Joined
Jul 11, 2016
Messages
21
Reaction score
3
First Language
Danish
Primarily Uses
The way I've accomplished something like that in the past (and it kind of depends what you want to do) is something like this. Say you want something to happen when the player is in the space of x = 5~7, and y = 5~7.




Here the forest represents the space you want the event to occur in. Next, the two empty graphic events in the corner there.




Next, set up variables that can track the player's X and Y coordinates on the map (also useful for other times you want to track the player's position, and not just this event), set as a parallel process.




Last, I made another parallel process with the event I wanted to happen. In this case, I have a bell continuously sound whenever the player is standing in the woods. This could be more complicated as well.


Be sure in those empty graphic events if you think anything else might be passing by and have its movement blocked, make sure you check "through" so they don't stand in the way of any game choreography you might have.


It may not be exact way you want to do it in all situations, but I find this method useful.
The thing i want is just to make the event area larger, so we have the event in the middle like this


xxx


x0x


xxx


Where 0 being the event, and x the expanded interaction area that activates the 0(event) when touched.
 
Last edited by a moderator:

Artonn

Villager
Member
Joined
Jul 11, 2016
Messages
21
Reaction score
3
First Language
Danish
Primarily Uses
I wrote this a long time ago, but wasn't able to find it in any of the scripts I'd posted here.  So fixing that now ...





Note - this will only be useful for events that are not moving.


I've tried your script, can't get it to work sadly :(
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Please post in the thread for the script, showing what you've done.
 

Artonn

Villager
Member
Joined
Jul 11, 2016
Messages
21
Reaction score
3
First Language
Danish
Primarily Uses
Problem solved! Shaz's plugin has the solution. Here's a link: 
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,015
Members
137,563
Latest member
MinyakaAeon
Top