is there any other way of testing the accelerometer without putting my game on a mobile device?
my game uses the tilt function on an ios device but I need an apple developer account to put it on (do I? see my other question on the profile page) how can i test the game on my mac?
Best Answers
-
Zoyt Posts: 374
Make a virtual rotation slider and just change the variables to what that returns. When ready for the real thing, change them back. I want the same thing though. -
AppTek Posts: 152
Well, if you get isimulate, then incorporate it in the gamesalad viewer and build and run viewer in the simulator, then preview the game in Xcode viewer, you should get the accelerometer support. For more info go here, http://www.vimov.com/isimulate/ -
Sinequanon Posts: 35
Accelerometer ranges between -1 and 1 in the 3 dimensions it works in. If you know you're looking for X and Y to range, you can use the mouse to simulate accelerometer function by creating two new attributes - Call it SimAccelerometerX and SimAccelerometerY, both real attributes.
Then,
Constrain Attribute: SimAccelerometerX -> ((1/160)*game.Mouse.Position.X)-1
Constrain Attribute: SimAccelerometerY -> ((1/240)*game.Mouse.Position.Y)-1
This assumes you're in portrait instead of landscape. If you're in landscape then you can use these same rules, I'd just change the name of SimAccelerometerX to SimAccelerometerY.
You can test this all out by creating an actor, and making two real attributes that record its initial X and initial Y positions, then adding two more constrain attribute behaviors:
Constrain Attribute: self.Position.X -> (160*SimAccelerometerX) + self.InitialX
Constrain Attribute: self.Position.Y -> (240*SimAccelerometerY) + self.InitialY
The actor will be attached to the mouse position, though the SimAccelerometerX/Y attributes will be reporting between -1 and 1. Those inputs can be used in place of whatever you're using accelerometer values for, for instance, in a Change Velocity behavior, and using your mouse cursor's position inside the window to substitute for the input you would otherwise get from the accelerometer.
Good luck.
This discussion has been closed.
Answers
You may certainly use GameSalad Creator without a developer's license, but in order to publish anything to the App Store (even without GameSalad) you must have a developer's license.
It's kind of like saying you need a driver's license to drive a car. Honda isn't requiring you to get a driver's license in order to purchase a car from them... they are just letting you know that the law requires that you have one in order to drive the car.