How to have the particles appear at the point where the 2 actors collide?
Hello, guys! I have a question about particles...
How do I make the particles appear at the point where they both collide? Right now, the particle appears at the actor's center since it's at 0,0.
Thank you, guys!
How do I make the particles appear at the point where they both collide? Right now, the particle appears at the actor's center since it's at 0,0.
Thank you, guys!
![=) =)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smiley.png)
Comments
So that's one thing you can do. You can also make your particle explosion slightly bigger so it appears like its blowing up over both.
I have another idea that may work but its a little more complex. It would be more precise but i'd like to see if anyone else with more experience can suggest something first. I'd hate to make you do more work than necessary.
In the meantime play around with spawning the particles a few pixels away from the actors center point (like mentioned above). Perhaps add a rule that checks what side the other actor is coming from. For instance if BadGuy position X is greater than goodguy position x and collide, than spawn particle explosion at self position xy of goodguy+7.
Unfortunately this would require having lots of constrains. I'm very sure there's a better and simpler way of doing this.
Oh and btw please let me know if everything above seems like jibberish
http://gshelper.com/?p=372
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Emitter Offset>: (self.Size.Width/2)*sin(90-vectorToAngle(otherActor.X-self.Position.X, otherActor.Y-self.Position.Y))
Emitter Offset^: (self.Size.Height/2)*cos(90-vectorToAngle(otherActor.X-self.Position.X,otherActor.Y-self.Position.Y))
@anatomyofdreams I want the explosion to happen at the point where they touch. Since it's a ball, it can be anywhere around the ball and can't really be a fixed point. There might be a formula for that but I don't know what.
I've decided to just do the effect in After Effects instead of the particle system in GS. I think it's easier that way. But I still have no idea how to make that animation appear at the point of impact.
@Braydon_SFX thanks for the video. I have seen that before but it seems the explosion happens at the center of the actor.
@RThurman I haven't tried this yet... I'll try it and let you guys know. I wish I can fully understand all these expressions... =(
http://www.mediafire.com/download.php?3pl2d8cull06lre
In addition, there are at least two/three books on GameSalad development. You can do a search to find them. I am not sure if he still offers his book, but @Photics self published a textbook that I found extremely helpful. GameSalad will be publishing their own official book in Feb./March 2013.
There are also many online resources that answer specific questions. You should look in the signature block of many of the forum members who have created really great video tutorials. There is a gold mine of information about GameSalad!
Personally, I think that the best learning happens when someone finally realizes the question they are really asking and then focuses in on it. My recommendation would be to go over the free and publicly available materials mentioned above and then ask specific question when there is no information. Learn by doing!