Gravity as Vector

ktimv3ktimv3 Member Posts: 2
edited November -1 in Working with GS (Mac)
I'm a little new to GameSalad. The newest release states that you can modify gravity during game play, as apposed to statically assigning it the Scene Editor.

"Gravity As A Vector Gravity now has an X component. In previous versions But wait, that's not all. Gravity now can be actively controlled via behaviors allowing for alterations in direction and magnitude based on ‘x’ and ‘y’ gravity values while the game is running."

I see how you can modify x & y values in the scene area, but I can't find how to modify it's values via behaviors or during gameplay. The attribute browser does not have any entries for gravity. I tried self.Gravity.X, game.Gravity.X, etc...

I must be looking in the wrong place.

Anyone have success with modifying any gravity components/attributes? Thanks!

Comments

  • ktimv3ktimv3 Member Posts: 2
    Never-mind... I found it.

    You can only modify Scene attributes with instances in the scene.

    I was trying to modify Gravity with the prototype.
  • RHRH Member Posts: 1,079
    You have to edit the actor in scene. I.e. place the actor in the scene, double click on it, add a change attribute behaviour and the scene's gravity should be located at scene.gravity.X or scene.gravity.Y
Sign In or Register to comment.