GameSalad Forums GameSalad Forums
Categories
Discussions
Dashboard
Sign In · Register
Sign In · Register
Categories
Discussions
Dashboard
Sign In · Register
Home › Search
  1. [Solved] Help with a very simple math expression, from official GS Basic Table Tennis template.

    osakamitsu
    by osakamitsu · February 2015
    Change attribute: self.Motion.Linear Velocity.Y To:random(70,120)*(-1)^(random(1,2))
  2. Just a quick question about High Scores

    tatiang
    by tatiang · February 2015
    Here's a video from the attached file of what should happen when you use Load & Save Attribute behaviors but exit out of the Preview and return (on a Mac, not on a mobile device). When you ch
  3. Just a quick question about High Scores

    FlyboyTrevy_
    by FlyboyTrevy_ · February 2015
    I just have like I said a game level attribute integer, default at zero, that when the score exceeds it it sets that to the high score, and saves the attribute to A. The main menu scene that the progr
  4. Dont spawn more than once in one spot?

    RThurman
    by RThurman · February 2015
    Timer (every .4 seconds) Change Attribute: self.myRndNum To: (self.myRndNum+random(0,2))%4+1 Spawn Actor: Position^: 102+((self.myRndNum-1)*187) Position>: 0 Relativ
  5. Interpolate issue

    KillerPenguinStudios
    by KillerPenguinStudios · February 2015
    * Create a real or integer attribute and lets call it something like "interpolate_time"
  6. Just a quick question about High Scores

    FlyboyTrevy_
    by FlyboyTrevy_ · February 2015
    So in my scene, if the player's score exceeds the high score, it sets the high score as the score. Pretty basic. Then it saves the highscore attribute as A. Then when the game boots on the main menu,
  7. Interpolate issue

    motorcycle boy
    by motorcycle boy · February 2015
    an interpolate behavior. I also use a game level attribute "game.state" for my main character. So if game.state = 3 then I have the interpolate coding fire and he starts to descend
  8. Moving an actor in a particular axis - not working?

    Socks
    by Socks · February 2015
    Please break it down more simply. Furthermore do I need a new attribute for this?
  9. Moving an actor in a particular axis - not working?

    Karim_S
    by Karim_S · February 2015
    Please break it down more simply. Furthermore do I need a new attribute for this?
  10. Game Speed w/ Power Up Issue

    Braydon_SFX
    by Braydon_SFX · February 2015
    Not sure that I understand you correctly...But couldn't you just record the speed (in a separate attribute) right before the power-up is used?
  11. Game Speed w/ Power Up Issue

    motorcycle boy
    by motorcycle boy · February 2015
    So I want to alter the game speed when my character uses a power up. I figured that out no problem. I have a game level integer attribute I am using for my game speed. As a side note, my game speed is
  12. Spare Code ? Dump It here.

    tatiang
    by tatiang · February 2015
    Here's a demo that stores enemy actor locations in a table and then moves the hero actor to the closest enemy. It's likely that to use this in an app, you'd need to constrain the table cells to the e
  13. Move to closest actor

    tatiang
    by tatiang · February 2015
    Keep in mind that depending on your game setup, you might have to constrain the table cells to the enemy positions by using a Timer. This can have a pretty negative effect on app performance.
  14. Actor collisions with moving actors via touch

    wcsd9739
    by wcsd9739 · February 2015
    If Touch is Pressed, Constrain attribute [ self.position.x ] to [ max(min(game.touches.Touch1.x, game.displaysize.width+self.size.width), -self.size.width) ] Constrain attribute [ self.
  15. Keep Object Velocity At A Constant Speed Even After Collision?

    RThurman
    by RThurman · February 2015
    When [Magnitude(self.LinearVelocityX,self.LinearVelocityY)] < 140 Change Attribute: self.myDirection To: VectorToAngle(self.LinearVelocityX,self.LinearVelocityY) Change Attribute: self.Motion
  16. Keep Object Velocity At A Constant Speed Even After Collision?

    KillerPenguinStudios
    by KillerPenguinStudios · February 2015
    That is a good idea but the only issue is knowing the direction it is traveling since it is always changing when it bounces off things. Basically I just want balls bouncing around the screen at a cons
  17. Actor collisions with moving actors via touch

    Adamuk82
    by Adamuk82 · February 2015
    DO - constrain attribute - self posiiton.x to game.touches.Touch 1.x
  18. Keep Object Velocity At A Constant Speed Even After Collision?

    Lovejoy
    by Lovejoy · February 2015
    Have you tried setting the actor's self attribute under motion, max speed to x and then check apply max speed?
  19. Keep Object Velocity At A Constant Speed Even After Collision?

    RThurman
    by RThurman · February 2015
    Change Attribute: self.Motion.LinearVelocityX To: 150*cos(Direction) Change Attribute: self.Motion.LinearVelocityY To: 150*sin(Direction)
  20. Keyboard Input to Table not saving. Am I missing some logic?

    tatiang
    by tatiang · February 2015
    Right, there's no way to make a rule condition for the submit button. I wish there was. So you either have to determine if it's not blank or if it doesn't equal the current value of the attribute in
Previous Next

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with GameSalad

Sign In Register

© Vanilla Keystone Theme 2026

Powered By Vanilla