Hi all!
I'm trying to make some animations that have the looped animation feel you get from Unity/after effects/ or other keyframe software. This is for the AI/stationary state on an actor when he isn't being interacted with. So I just want my actor to move around a little and bob up and down as an AI animation.
To make him swing back and forth just a little, I'll use this:
This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.Hi guys,
I'm trying to do a pretty simple thing and I'll appreciate your help.
I have an object, looks like a stick lets say: |
I'm trying to rotate it in a loop to angle 40 and then to 320 and so on in a loop- like swinging.
the object starts with rotation = 40.
What I did is to use the "Rotate to Angle" behaviour. I ask if self.Rotation between 40-45, then rotate to angle 320. if rotation between 320-325 then rotate to angle 40.
What happens is that it really goes to angle 320 for the first time and then goes back to angle 40 as it suppose to but thats it! it doesnt do it in a loop! Only one swing to the left and one to the right. I've tried to play with the "run to completion" "stops on destination" buttoms but no luck...
How do I make it swing in a loop???
Thanks,
Stas.
But I also want to interpolate the size in and out just a little to stretch him, to make the movement feel more organic. And this would just loop over and over. Like the stick in the above 'rotate to angle' example, it would be better if one side of the actor (the feet side) could constrain in place, and thus stretches while constraining one side to it's original position, so that it doesn't look like his feet are changing position on the ground... if that makes sense.
How would I do this without conflicting with any of the 'rotate to angle' constrains seen in the above attached post? Or do I just add something to the rotate to angle constrains?
Cheers
Comments
I would also like to know this as I am hoping I can use Interpolate to make an actor idle with a type of pulsing or breathing animation without adding new image files.
Miss Faith 🙎
---
Hm...Does building games with Gamesalad ever get you craving Kale? Seriously! I can't stop thinking about Kale now! 🤪
So you'd need 3 interpolates for this:
Hope that helps!
I have a video on custom collision shape animations. It was done long ago but Imagine it still works in GS.
https://m.youtube.com/watch?v=p1mekhwcJCE
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS