Collision Shape + Animation
Nicodahl
Member Posts: 14
Hi!
I've been working on my game some months now, but ran into a problem I've been trying to fix for hours.
And I think I'm going crazy. :-&
I have a created a plank that is going to burn when I trigger it. For this I've made a fire-animation.
My problem is; the plank change sizes during the animation, due to my collision box.
You see, the collision box needs to be matching the plank exactly. However, to create a fire animation I will need to create a bigger collision box because the flames will be outside the plank. See what I mean? >:D<
There is going to be lots of planks in the scene, and they are all affected by gravity. That's why I need the collision box to be precisely upon the plank. If I could possibly add flames behind the plank without changing the collision box, that would be awesome. But they would of course need to be connected to the plank due to gravity.
I hope I'm not too bad at explaining, and pardon my english.
Help will be much appreciated! /:)
Sincerely
Nico
I've been working on my game some months now, but ran into a problem I've been trying to fix for hours.
And I think I'm going crazy. :-&
I have a created a plank that is going to burn when I trigger it. For this I've made a fire-animation.
My problem is; the plank change sizes during the animation, due to my collision box.
You see, the collision box needs to be matching the plank exactly. However, to create a fire animation I will need to create a bigger collision box because the flames will be outside the plank. See what I mean? >:D<
There is going to be lots of planks in the scene, and they are all affected by gravity. That's why I need the collision box to be precisely upon the plank. If I could possibly add flames behind the plank without changing the collision box, that would be awesome. But they would of course need to be connected to the plank due to gravity.
I hope I'm not too bad at explaining, and pardon my english.
Help will be much appreciated! /:)
Sincerely
Nico
Comments
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
The method @Braydon_SFX mentioned is a good way to do it. Another way is to make the fire animation a separate actor from the plank. You can then constrain the x,y coordinates of the fire animation actor to the plank actor so that the animation will follow the plank when the plank is moving.
Hope this helps. Let me know if you have any further questions
AppTaco LLC
http://www.apptacostudio.com/
https://www.facebook.com/apptacostudio
Thanks alot guys Excellent feedback!!