RMMV Fun Little Particle Problem

Alador

The Mage of Mythix
Veteran
Joined
Apr 16, 2020
Messages
179
Reaction score
184
First Language
English
Primarily Uses
RMMV
Hey there. fellow game devs! I was wondering yet again if you could assist me like you have so many times before.

So, I have downloaded the Particle Emitting Plugin, but I have run into somewhat of a conundrum. I need to anchor the particles to the mouse, but not just that. I also need the particles to appear when you hold the left mouse button but disappear when you release it. It would work somewhat like a drawing-esque program, but you're drawing with particles. The particle emitter plugin does not seem to be very Javascript implementation-friendly, so I was wondering if there was any way to attach the particles to the mouse in the way aforementioned.

Thank you for your time and effort!
 
Last edited:

Alador

The Mage of Mythix
Veteran
Joined
Apr 16, 2020
Messages
179
Reaction score
184
First Language
English
Primarily Uses
RMMV

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
692
Reaction score
353
First Language
German
Primarily Uses
RMMV
...what's that? :kaoswt:
I guess this is the Plugin.

However @Alador
If i am wrong pls give a link to the Plugin which you mean, probably that was the reason nobody answerd earlier..
(not enough Informations about your Question)
 

Alador

The Mage of Mythix
Veteran
Joined
Apr 16, 2020
Messages
179
Reaction score
184
First Language
English
Primarily Uses
RMMV
ah, sorry, @Dopan! Yes, that is the particle emitter plugin I was talking about, I'll edit my original post to have the link in it, again, sorry!
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,227
Reaction score
1,634
First Language
EN
Primarily Uses
RMMZ
OK, by default that plugin seems to anchor particle effects to tiles/events, so I think you'd need an add-on or a Parallel event to keep the emitter synced to the cursor position...

I'd suggest assigning the emitter to the player to start with. Looks like you can change the position of an existing emitter with the setPEmitterPos plugin command. The corresponding script call seems to be:
JavaScript:
$gameMap.setPEmitterPos(id, x, y);
So I'm guessing you could have a Parallel [common] event with a Script command something like this:
JavaScript:
$gameMap.setPEmitterPos('cursorParticles', TouchInput.x, TouchInput.y);
Remember to substitute your emitter id here. Also bear in mind that Parallel events automatically trigger while active and not already running, so there's no need for a loop.
 

Alador

The Mage of Mythix
Veteran
Joined
Apr 16, 2020
Messages
179
Reaction score
184
First Language
English
Primarily Uses
RMMV
Ah, yes, thank you ever so much, @caethyril! This is exactly what I need!
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,227
Reaction score
1,634
First Language
EN
Primarily Uses
RMMZ
Hope it works! :p
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm moving on from RMXP finally. I've been stuck in a difficult decision between XP and MZ, and I've given up and moved on to MZ. Overall I'm really liking it, I wish tilesets were easier to setup like XP, but it's actually not that bad!
Have you ever gone full 'Ship of Theseus' while frankenspriting? Because I just did.
I saw my new eye doctor today, he reminds me of Satoru Iwata for some reason
I've been using a modified version of a script called Multiple Messages. It makes my text boxes look like a Mario & Luigi game! There is something about it that bothers me a little bit, but I shouldn't worry about that now.

Side note, Mist's walking animation is almost perfectly in sync with Loose Yourself by Eminem.
Starting work on some stuff for the community. Hopefully it will be fun, and useful to somebody.

Forum statistics

Threads
107,772
Messages
1,032,033
Members
139,914
Latest member
smudge
Top