-
[Solved] Help with a very simple math expression, from official GS Basic Table Tennis template.
by osakamitsu ·Change attribute: self.Motion.Linear Velocity.Y To:random(70,120)*(-1)^(random(1,2)) -
Just a quick question about High Scores
by tatiang ·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 -
Just a quick question about High Scores
by FlyboyTrevy_ ·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 -
Dont spawn more than once in one spot?
by RThurman ·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 -
Interpolate issue
by KillerPenguinStudios ·* Create a real or integer attribute and lets call it something like "interpolate_time" -
Just a quick question about High Scores
by FlyboyTrevy_ ·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, -
Interpolate issue
by motorcycle boy ·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 -
Moving an actor in a particular axis - not working?
by Socks ·Please break it down more simply. Furthermore do I need a new attribute for this? -
Moving an actor in a particular axis - not working?
by Karim_S ·Please break it down more simply. Furthermore do I need a new attribute for this? -
Game Speed w/ Power Up Issue
by Braydon_SFX ·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? -
Game Speed w/ Power Up Issue
by motorcycle boy ·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 -
Spare Code ? Dump It here.
by tatiang ·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 -
Move to closest actor
by tatiang ·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. -
Actor collisions with moving actors via touch
by wcsd9739 ·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. -
Keep Object Velocity At A Constant Speed Even After Collision?
by RThurman ·When [Magnitude(self.LinearVelocityX,self.LinearVelocityY)] < 140 Change Attribute: self.myDirection To: VectorToAngle(self.LinearVelocityX,self.LinearVelocityY) Change Attribute: self.Motion -
Keep Object Velocity At A Constant Speed Even After Collision?
by KillerPenguinStudios ·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 -
Actor collisions with moving actors via touch
by Adamuk82 ·DO - constrain attribute - self posiiton.x to game.touches.Touch 1.x -
Keep Object Velocity At A Constant Speed Even After Collision?
by Lovejoy ·Have you tried setting the actor's self attribute under motion, max speed to x and then check apply max speed? -
Keep Object Velocity At A Constant Speed Even After Collision?
by RThurman ·Change Attribute: self.Motion.LinearVelocityX To: 150*cos(Direction) Change Attribute: self.Motion.LinearVelocityY To: 150*sin(Direction) -
Keyboard Input to Table not saving. Am I missing some logic?
by tatiang ·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