Interpolating size of all actors on scene at the same time!

Hey, I have been trying to figure this one out. Would I have to put in a rule for each actor individually? Could i just animate the entire scene to look like everything is interpolating size? I think both ways would work but i'm curious to know if there is a better way. What i'm trying to do is interpolate all actors' size on the scene to shrink before it goes into the next scene, it gives a cool effect...

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Instead of bothering with changing the size of every actor, consider changing the camera size so that you get the effect of zooming. If you Google terms such as camera zoom gamesalad and click on the Videos tab you'll find lots of tutorials.

    If you do need to interpolate every actor's size you would, for example:
    Change attribute self.startWidth to self.size.Width Interpolate self.size.Width to self.startWidth*0.5 Change attribute self.startHeight to self.size.Height Interpolate self.size.Height to self.startHeight*0.5

    That would shrink each actor by 50% for its width and its height. The extra attributes are needed because it doesn't work to interpolate an attribute to a variation of itself (e.g. Interpolate self.size.Width to self.size.Width*.05 will create an endless loop of decreasing value).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • GnarlyGnarly canadaMember Posts: 840

    mark

  • mhedgesmhedges Raised on VCS Member Posts: 634

    @ExplosiveGamer, Adding a bit to what @Tatiang said, the camera zoom would not affect the behaviour of the actos as the interpolate could possibly do. For example, if two actors are interpolated and they touch (collide), then they could be destroyed (or some other behaviour) as if you coded it to "happen under un-interpolated circumstances". That is, red can't touch blue, but you caused it to happen due to the interpolate.

Sign In or Register to comment.