Problem ice dungeon: sliding object

Poupouille

Veteran
Veteran
Joined
Mar 1, 2017
Messages
162
Reaction score
26
First Language
Russian, french
Primarily Uses
RMMV
Hello.

I'm doing a classic map with a sliding object and a switch to activate (with the object sliding).

(Events around the switch allow the door to close when the character moves away from the switch)

The problem is that when the event touches the switch, nothing happens.
I found this plugin: https://galvs-scripts.com/2016/08/14/mv-puzzle-functions/
allows you to interact 2 events together (watch the second map in the demo project), but unfortunately it doesn't work when the object sliding.

There is another difficulty:
In order for the block of ice to remain on the switch, the second ice block must be placed around. Otherwise the first ice block will slide through the switch.

I don't know if I can put a link, but here you have the project if you want to test.
https://mega.nz/#!1shSXbZC!P6B_wD1ehKr1U9WLN255PMMoWSFWyVwaObD_XSCmh_8

How can I do? :(
 
Last edited:

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
376
Reaction score
84
First Language
English
You can make it so the event when touching a certain "X/Y Coords" can activate the switch by running a parallel event that checks for it all the time. I use this method for moving tiles.
 

Poupouille

Veteran
Veteran
Joined
Mar 1, 2017
Messages
162
Reaction score
26
First Language
Russian, french
Primarily Uses
RMMV
Someone has a screenshot please, because I don't know where is this option. :/
 

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
376
Reaction score
84
First Language
English
I looked into it. I think you need movement events

Deleted original post as I don't think it would have worked in your situation.
 
Last edited:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Isn't it one event, that's moving onto another event? No player position needs to be checked (just based on what's written in the OP - I haven't downloaded anything)
 

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
376
Reaction score
84
First Language
English
I thought it was a moving event, so I was checking "events" x and y's location as it moved.
 

Poupouille

Veteran
Veteran
Joined
Mar 1, 2017
Messages
162
Reaction score
26
First Language
Russian, french
Primarily Uses
RMMV
I am really sorry. I have been trying for over two hours and I can't.
Would someone have the kindness to download the project to do the event?
I've been blocking with this puzzle for over a month now.:headshake:
 
Last edited:

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
376
Reaction score
84
First Language
English
So, you want an event to move? What causes it to move? Player pushes it? Then it moves?
 

Poupouille

Veteran
Veteran
Joined
Mar 1, 2017
Messages
162
Reaction score
26
First Language
Russian, french
Primarily Uses
RMMV
Yes that's correct.
 
Last edited:

Poupouille

Veteran
Veteran
Joined
Mar 1, 2017
Messages
162
Reaction score
26
First Language
Russian, french
Primarily Uses
RMMV
Impossible for Solis (we talked by MP). :'(

So, if someone want to try please, help me.
 

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
Right I'm done. One question - do you want it for the door to stutter/start to open if the block slides over (and off) or are you happy with it only opening when the block rests in the perfect position?

The stuttering door might be a lot harder but I'll give it a go now.
 

Poupouille

Veteran
Veteran
Joined
Mar 1, 2017
Messages
162
Reaction score
26
First Language
Russian, french
Primarily Uses
RMMV
Sorry, but I'm not sure to understand your question.

Ideally, I would like there to be two blocks (to make it a bit more difficult and interesting).
In order for the block to remain in place on the switch, a second block must be placed around the switch for the other can be stopped and stay on the switch.
If there is nothing, the block will slide on the switch, the door will open and then close.
 
Last edited:

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
That's OK, I understand :).

I'm almost done, just trying to bug fix.

https://mega.nz/#!ov4Czaia!0Ceqfk6AElcidujyqzFv0ZoRW-oge4APEmeu_XZfKso

Basically: Switch when you touch the block that activates a parallel event that checks location. If the event location changes 30 frames later then the door closes again (for when it slides past) but if it stays in position then it keeps the door open.
 
Last edited:

Poupouille

Veteran
Veteran
Joined
Mar 1, 2017
Messages
162
Reaction score
26
First Language
Russian, french
Primarily Uses
RMMV
It's working!

But I have a big fall of framerate when I push the bloc. Do you have the same?
On the other hand, the door doesn't open when the bloc n°1 passes across switch. I'm seeing how it all works to correct the problem.
 

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
It's working!

But I have a big fall of framerate when I push the bloc. Do you have the same?
On the other hand, the door doesn't open when the bloc n°1 passes across switch. I'm seeing how it all works to correct the problem.
That's probably the parallel process kicking in as it slides. Not sure how to reduce that exactly - you'd probably have to go the plugin route rather than just eventing.
 

Poupouille

Veteran
Veteran
Joined
Mar 1, 2017
Messages
162
Reaction score
26
First Language
Russian, french
Primarily Uses
RMMV
It is possible to delete the "wait" when the character push the bloc?

On the other hand, the door doesn't open when the bloc n°1 passes across switch. I'm seeing how it all works to correct the problem.
And for the bloc n°1. I copy-past event from the second bloc, and it doesn't work. Why?
 

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
Did you add the "Turn Switch "Trigger 2" ON" to Bloc 1?

You can try to delete the wait, see if it works any better for you :). I was just trying to make sure there was a slight time delay to check if Bloc 2 was still on the button.
 

Poupouille

Veteran
Veteran
Joined
Mar 1, 2017
Messages
162
Reaction score
26
First Language
Russian, french
Primarily Uses
RMMV

Lestroth

Veteran
Veteran
Joined
Apr 7, 2013
Messages
121
Reaction score
71
First Language
German
Hey @Poupouille,

I remember your map. Are you using the method I provided in your other thread, namely the Loop checking for Region IDs and the other event in front of the event? If so, it would be wise to check if the sliding object is on the switch right after the loop starts and before the check for Regions and Events.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top