How to modify gravity game with a behavior please

galbangalban Member Posts: 62
edited November -1 in Working with GS (Mac)
Hello
I need to change the gravity of my game with a behavior, but i can't find attibute game.gravity
How to modify gravity game with a behavior please

thanks

Comments

  • galbangalban Member Posts: 62
    My whole game is based on the severity, I can not change everything. I just need to stop the fall of my players when the player touch the pause button.
    Have you any idea?
  • galbangalban Member Posts: 62
    ok, thanks
    I hope they will soon add a pause behavior and they will correct the problems of slowing.
    More I work with GameSalad , more it slows. I must to restart gamesalad 50 times / day!
  • millerbrother1millerbrother1 Member Posts: 108
    Galban,

    I'm with you on that one. I find I have to shut down and reopen GS every hour or so to keep performance up (sometimes more).

    Definitely can't have Photoshop open while GS is open either. GS slows to a crawl.

    CJM
  • galbangalban Member Posts: 62
    Even if I only have to open gamesalad, I must to reboot every 15 minutes because he becomes very slow
    another problem: If I add a new actor on the screen (i think it depends to the position or the picture size), sometimes gamesalad totally bugs my MAC.I must to reboot (sorry for my english, i'm french)
  • galbangalban Member Posts: 62
    On my MacBook Pro i have 4 go RAM DDR3 and the problem is the same that my iMac. I think GameSalad does not release resources correctly. While I appreciate enormously GameSalad, I used to work on PC with software much "heavier" and I do not encounter these problems.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I think i know how you might accomplish what you want.

    First you can turn gravity on and off with a button you just have to set it up the first time by unlocking an actor within the scene. and building your rule from there to change the scene gravity as gravity is a scene attribute. There is also a way to make that rule work in your prototype even though you will be told it cannot be done by this forum. The problem is once you shut gravity off though your actors are going to go the other way.

    I Think you could probably create a game attribute and call it pause and then make your pause button set game.pause as true or false when touched. then all of your actors you want to stop moving create a rule in them that when game.pause is true it changes the actor attribute movable to false and vice versa. Thats all of course in my head i have no idea if that would work partly bc i dont know what else is going on when you want that to happen

    Good luck to you.

    Oh and if you want to know more about setting a rule in the prototype that affects scene attribute let you can email me at tenrdrmer(at)yahoo.com
  • galbangalban Member Posts: 62
    thanks, I'll try that
  • houenhouen Member Posts: 7
    The easiest way to do this in my opinion is to have your actor collide with actor (whatever stops gravity) and have a rule saying that when your actor collides with the other actor, set change attribute linear velocity to 0.
Sign In or Register to comment.