RMMV Fun Little Particle Problem

Alador

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

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
677
Reaction score
348
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
182
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,224
Reaction score
1,631
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
182
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,224
Reaction score
1,631
First Language
EN
Primarily Uses
RMMZ
Hope it works! :p
 

Latest Threads

Latest Profile Posts

Is this Profile Banner thing new? Or did I just discovered it now?
Well.. I was going to post my randomly generated road experiments... But the new "Attach Files" on profile posts seems to be quite buggy. Also there's no more option to insert Imgur images. Highly unfortunate. Guess I'll give them a bit to fix it and go back to messing with stuff.
my first day back to working on my project and i'm pooped!! hope to get back in the rhythm soon!

Forum statistics

Threads
107,595
Messages
1,030,826
Members
139,701
Latest member
beccokiwis
Top