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

Finished the frontier and...I apologize to anyone who saw the trailer I posted and actually tried it. Technical marvel, crazy disjointed fetish story hidden inside a cheap milsim skin that has no idea what it's trying to be except sanctimonious and failing at even that. As much as I hate fallout 4's story, even it was better. I guess there just won't be another non-parody fallout after all.
Anyone else having trouble posting in the forum? I have no reply box in posts or in messages. This is the only place I can type. @Archeia?
Snarkyfork wrote on Trihan's profile.
Hey man, I saw you mention that you do MV javascript work? Just wanted to confirm it before I put you on speed dial. =)
"Man is made by his belief. As he believes, so he is."-Krishna

Forum statistics

Threads
107,763
Messages
1,031,976
Members
139,906
Latest member
xana_the_machine
Top