of 3

# Pong analysis gs

Published on: Mar 4, 2016

#### Transcripts - Pong analysis gs

• 1. This is how behaviors are used, the top section of the box is known as the ʻconditionsʼ, these need to be met within the game for the action to take place, for instance I have it set so when All condition are valid (when the S key is pressed down) it shall move downward at a speed of 300, this is set to be relative to the actor which means depending on where the actor is it will move in that relative direction. These settings are vital for any actor, especially the physics, if you arenʼt careful you actor may start ﬂoating everywhere, I have the density at 500 meaning it is pretty much as dense as it can be, so it will not break, friction at 3 which, creates realistic feedback on movement, bounciness at 0 so the user has full control, it has a ﬁxed rotation as I do not want it to rotate, it is moveable, collision shape at rectangle as the object is a rectangle, this decides on how it will collide with other objects, the ball would be set to circle. These here are actors, they make the game up, anything you want to put into the game must be made as an actor so you can assign attributes and behaviors and so on. These are the settings for the overall size of the scene, but these settings are available on any actors to give you complete control over all size of anything in the game, this here is handy for if you wish to publish to a different platform. To be able to start making your game you need a scene, here are some of the settings you can change for the scene, such as color, Wrap X and Y (meaning if something goes off the left of the screen itʼll come back on the right) and many other useful settings. The size I have left at default which is the iPhone landscape preset but I could change this at anytime depending on how I would like to publish the game. Here you can see me using what is known as a ʻBooleanʼ value to set the serving for player 1, this has either one of two conditions, being either true or false. I have it set so if the space bar is pressed and it is player 1ʼs turn to server, it is true that player 1 is serving the ball will spawn on player 1ʼs side, this works almost the same as normal conditions but just a bit more complex in the way it works but a lot more effective for creating a good game. These are the color settings, these enable you to change the color to what ever you would like, by default I have it set to black, or Alpha 1 (pretty much meaning only the Alpha channel is showing). Like many other aspects of GameSalad you can easily customize them and even use behaviors to change the color, color settings are also available for all actors and the scene you are using.