RMMV Fun Little Particle Problem

Alador

The Mage of Mythix
Veteran
Joined
Apr 16, 2020
Messages
178
Reaction score
183
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
178
Reaction score
183
First Language
English
Primarily Uses
RMMV

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
687
Reaction score
352
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
178
Reaction score
183
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,226
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
178
Reaction score
183
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,226
Reaction score
1,634
First Language
EN
Primarily Uses
RMMZ
Hope it works! :p
 

Latest Threads

Latest Posts

Latest Profile Posts

Making Houses and Outside on the same map with RPG Maker MV!
Do people actually use buff/debuff function?
Ami


Imagine you (as Miner) Sleep in the Cave,the other side is a Bunch of Golds,how d'you feel?
finally got footage of my main character running around his corrupted street...

Forum statistics

Threads
107,707
Messages
1,031,559
Members
139,842
Latest member
Lilly123
Top