Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Particle Implosion?

Author
Message
JLM
9
Years of Service
User Offline
Joined: 21st Jul 2015
Location:
Posted: 14th Oct 2015 07:44
Trying to figure out how (if possible) to make particles spawn AWAY from the emitter and move toward the emitter, as opposed to spawning at the emitter and moving away. Is this possible?
-Writing programs for years, new to AGK2
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 14th Oct 2015 09:05
I haven't used them in AppGameKit, but if they are similar to DBPro...

Set the minimum spawn distance to be far away from the centre, and provide a negative acceleration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th Oct 2015 09:56
else maybe u can position it combination with UpdateParticles and then let them go.
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
JLM
9
Years of Service
User Offline
Joined: 21st Jul 2015
Location:
Posted: 15th Oct 2015 01:38 Edited at: 15th Oct 2015 01:39
Updateparticles works nicely for starting them away from the emitter, but addparticlesforce only sends them all down and to the right, doesn't "suck"them all towards the emitter.

Emitter Code:
-Writing programs for years, new to AGK2
JLM
9
Years of Service
User Offline
Joined: 21st Jul 2015
Location:
Posted: 16th Oct 2015 02:17
gave up and used a scaling sprite
-Writing programs for years, new to AGK2
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 16th Oct 2015 14:47
I had a quick play with this too... Negative time value for updateparticles just gets ignored, and negative values for SetParticlesVelocityRange just act as zero. Looks like you'll need to write your own particle imploder.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign

Login to post a reply

Server time is: 2024-11-16 22:14:33
Your offset time is: 2024-11-16 22:14:33