Need some help with an Expression

TouchTiltGamesTouchTiltGames Member Posts: 1,162
edited November -1 in Working with GS (Mac)
I'm trying to figure out how to adjust 2 lines of expressions to work on the iphone. It's for a cannon shooting a ball from the bottom left corner. The following works great on the iPad resolution:

When game.readyShoot = 1
Constrain:
max(500,min((magnitude(100- game.Mouse.Position.X ,100- game.Mouse.Position.Y )),500)*2)

When game.target=1
Constrain:
self.power to: max(0,( game.powerspeed -500)/20)
Constrain:
self.image to: "tb".. self.power ..".png"

So the closer you get to the cannon when you drag, the less power, and there's a power meter.

I've been fiddling with this for a good 2 hours, but can't seem to get it to work on the iphone resolution. You'd think I just reduce the '500' in half or slightly less than half for the 480x320 but no....
Sign In or Register to comment.