How to change attribute self.Angle?
stellathefella
Member Posts: 20
I may sound very silly, but i'm trying to create a game that I plan to be similar to Geometry Dash and I cant figure out how to change the attribute self.Angle on my actor. This is the first time i've used GameSalad so please take that into account. Also, any advice on how to create a GeometryDash-like game would be very appreciated!
Comments
Each actor has a built-in attribute called self.Rotation that determines its angle in the scene. You can change this in several ways including Change Attribute, Constrain Attribute, and Interpolate. You can also uses behaviors such as Rotate or Rotate To.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I still don't get how, for example, I would set self.Angle to self.Rotation-180 in a change attribute thingy because I cant find self.Angle at all as an attribute in the change attribute box thingy(this thing(http://tinypic.com/view.php?pic=30keliw&s=8#.VQCwFvnF-j8))
Im trying to get something like this http://tinypic.com/view.php?pic=vhw0o0&s=8#.VQC0wfnF-j8 but I cant find the angle attribute in the attribute menu.
.
How would I get exactly what I see in the picture I posted into a change attribute box?
Make a new attribute and call it 'Angle'.
Right... that's because self.Angle doesn't exist (unless you create it as a custom attribute). What you want is self.Rotation.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User