Keep actor front and center? xD
WolfieEnsalada
Member Posts: 26
Hi. ^__^ Sorry about all of these questions, I'm still having trouble figuring GameSalad out.
So I have an actor who is "running" at a constant speed in a scrollable level. When you touch the screen, the actor jumps up and then falls back down (gravity). Unfortunately, I have this problem where the actor is scrunched up at the right side of the screen while running. How do I fix this so that the actor remains near the center of the screen while still running and having the level scroll past it? o_o I tried using the behavior "Constrain Attribute," but I wasn't even sure what to constrain! ^_^"
So I have an actor who is "running" at a constant speed in a scrollable level. When you touch the screen, the actor jumps up and then falls back down (gravity). Unfortunately, I have this problem where the actor is scrunched up at the right side of the screen while running. How do I fix this so that the actor remains near the center of the screen while still running and having the level scroll past it? o_o I tried using the behavior "Constrain Attribute," but I wasn't even sure what to constrain! ^_^"
Comments
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
The iphone screen (currently) is 480 across by 320,
You'll want to constrain the player's X position to something like 100. Putting him in the middle (240 - which is half of the 480 width) will mean he won't be able to see objects fast enough to jump over them.
Hope that helps!
QS
Or do what gyro says!
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Let's see...
I'm trying what you've said, quantumsheep...
...
Hmmm... are you using the Constrain Attribute Behavior for this? If so, what do I constrain? The "Image" of the Actor? Or the "Tags"? o_O See, when I put "self.Image", it says the image is missing... o___o
EDIT: WAIT! I got it! xD It's the X Position. Sorry! >__< Thanks again!