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 / CreateParticles Command

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 23rd Apr 2012 19:01
What happens if you call a CreateParticles for the duration of 0.5 second, the effect plays and end, and you DO NOT DeleteParticles?

Does AppGameKit automatically stop the particle effect, or does it continue to \"play\" and create a processing overhead?
Paronamixxe
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 30th Apr 2012 13:29
I honestly have no Idea mate, Ill check for you.

//Anton
Paronamixxe
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 30th Apr 2012 13:33
What happens is that the particles that already were drawn will continue untill their life is over. Check the "Creating Particles" example project in the "Examples/Particles" folder.

//Anton
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 30th Apr 2012 14:07
And what will happen after its done?

Will the CreateParticles command auto delete itself?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 30th Apr 2012 14:15
CreateParticles creates an emitter, the emitter will emit particles at the default or specified rate until it is deleted. I'm part way through a tutorial on these commands right now

Paronamixxe
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 30th Apr 2012 14:44
Awesome, if you have a way of getting a collision between a particle and a sprite that would be helpful!

//Anton
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 30th Apr 2012 15:06
That's not currently possible. You could create your own particle system. That way it could be affected by physics too

If you need some help just post what you want your system to do and I'll rough a quick system outline for you...?

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 30th Apr 2012 18:28
Baxslash so the DeleteParticles command is only there for use if you want to remove a particle system that is already in action?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 30th Apr 2012 18:34
Yes, individual particles cannot be edited.

Paronamixxe
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 1st May 2012 22:49
baxsash, I have already received some helpful code which involver doing something like this:


Do you think that this would work? ofc then I would add an if loop which checks for collision between each instance of "i" with my player controlled sprite.

//Anton
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st May 2012 23:34 Edited at: 1st May 2012 23:35
That's a start.

Here is my current particle project (unfinished) that might help get you started. It's not at all finished but it has a physics smoke particle command set. Might help

DOWNLOAD

Attachments

Login to view attachments
Stormwire
13
Years of Service
User Offline
Joined: 3rd Sep 2010
Location:
Posted: 2nd May 2012 21:28
baxslash that looks amazing thanks for sharing
Paronamixxe
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 2nd May 2012 22:22
Thanks mate So much help.

//Anton
Paronamixxe
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 2nd May 2012 22:25
Baxslash, can I use this/parts in my projects? as this is sooooo awesome!! I will give you credit in the game info ofc.

//Anton
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd May 2012 00:27
Yes use it no problem

Login to post a reply

Server time is: 2024-05-03 07:28:11
Your offset time is: 2024-05-03 07:28:11