Hole and map change

XGuarden

Veteran
Veteran
Joined
May 10, 2016
Messages
446
Reaction score
17
First Language
French
Primarily Uses
I want that when a user walk on a tile with region id 255 then he fall to the lower floor automaticly. I whant it to be activate by map. Any idea?
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
Use a paralell event and use control variables to get the player mapx and y coordinates, than use Eventcommand Get Location Info to get


the Region ID on Player Position,than a conditional branch than if yes do your teleport and falling stuff.


Maybe this helps to point towards a possible direction for a solution.
 

Roderick

Veteran
Veteran
Joined
Apr 19, 2016
Messages
39
Reaction score
11
First Language
English
Primarily Uses
Set a switch that allows this Common Event to run in Parallel. You'll have to make sure that every floor with a hole properly lines up with the floor below, and that the Map ID of the floor below is one greater than the Map ID of the current floor. If you don't set up your maps properly, the results could be unpredictable. You will get an error resulting in a crash if you try to use holes on the last Map ID in your project.


holefall.jpg


And here's the project I created with that event in it.


Make sure you turn on a switch so that the Common Event runs; that's the only purpose the extra event in the corner of Map 1 serves. And remember the Wait command in the Common Event. Leaving it out will create lag in your project.


You can put the Event in a Parallel Event in the map with the holes instead of a Common Event if you only use them in one or two places.
 
Last edited by a moderator:

XGuarden

Veteran
Veteran
Joined
May 10, 2016
Messages
446
Reaction score
17
First Language
French
Primarily Uses
ok thanks =:0) It's look like how I doing it in ACE, I hoping that can be do using javascript for be faster but I will use this method then.
 

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

Latest Threads

Latest Posts

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,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top