Actors moving off screen when using viewer to test
thaas1124
Member Posts: 9
I am just running a simple breakout game for the ipad, reso is 768:1024 and testing with an iPad2. This is the same size as my scene. When I run it using viewer however, the paddle (racket) moves off the screen about 30-50 pixels or so on both sides. I tried it on my iphone5 and it does the same thing, however I realize the phone doesn't have the same resolution, but I have "resolution independence" checked. These seem like such basic things, but I just can't figure out what is going on. Any thoughts? Much appreciated!!!
Comments
What kind of constrain rules are you using?
And you didn't actually say that it doesn't do this in Creator's Preview but I take it it doesn't?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I have wall actors on the outer edge of the screen/scene, with collide rules. So I know the ball actor shouldn't ever go off screen, however the ball goes off the left and right of the ipad screen during testing. And that's correct, when I do it in the Creator preview, it works correctly...but not in viewer on the iPad. It's strange.
Have you tried using Display Text to see what the x/y values of the ball actor are when it is off the screen? If you use the Release Candidate of Mac Creator, you can specify an offset so that you can display the text within the scene boundaries even if the actor is off the screen. If you use Windows, you could constrain a game attribute to the x or y position of the ball and then use another actor to display it.
Have you changed or constrained the camera scene attributes at all?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I displayed the x/y values and when the ball is just off the left margin of the screen on the iPad the X shows about 30, and for the iPhone it's about 80. the ball actor is 20x20. The x=0 is definitely off the screen.
Any chance you can send me a link to download a .zip file of your project file? It may be something obvious I can spot. The only thing I can think of is that you're changing the viewing platform from iPad Landscape or setting it to crop.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User