Ipad game large scene, need to get camera offset to function properly...
For example, I am making an iPad game and the scene size is 1024x768. I have 20 scenes set up that way, but now i want to make the next 20 at 2048x1536. I created the scene and had to constrain the camera to the hero so that it would follow. I have all my elements in the right layers with scrollable set up. Everything is moving as it should. The issue is when you touch the screen in the initial 1024x768 space everything works fine. But as soon as the hero leaves the initial screen nothing works.
I have rules setup so that when you click the strength it spawns and explosion that shoots the actor using a magnitude function and a vector to angle. I tried following the video that tshirtbooth put up about using the offset, but cant seem to get it working correctly.
Thanks
Kevin
Answers
@kganczak, but that is key to getting it to work. Try to understand why the camera offset is needed and what it affects, then you can adapt it to your other functions.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Hopscotch, I totally agree, and at first I spent alot of time trying to really understand that. I believe i have a good grasp on that, but my issue is getting it to work correctly. I can move the camera and make the x and y coordinates initiate properly when the screen in touched, but it seems to apply differently to different actors and I dont know why.
@kganczak, the offset only applies to touch actions, if you work with the coordinates generally in your actors, then your X/Y coordinates are treated the same as you did on the smaller screen. Except that it is wider now.
Maybe post a screenshot and clearer description if you don't figure it out.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
@Hopscotch, thank you for the reply and the assistance, it is greatly appreciated. I will create another post tomorrow(same thread) with some screenshots or maybe a simplified version of the project file for review.
Thank you again...
No problem.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Hey guys...here is a single scene and simplified version of the game with the logic....
there may be a debugging statement or two in there, as i was trying to log out some actions to test. The template is based on one from Deep Blue Apps (those guys are great) and the blue actor (hero) is projected around by the touch of the screen. Problem is when the actor leaves the original 1024x768 then the explosion is spawned and animation is seen, but no movement to the hero. Again, I tried the offset like in tshirtbooths video but could not get it to work correctly.... if anyone could assist i would appreciate it. Here is a link to the zip file with the project in it.
https://app.box.com/s/vikz9s0ezqz48xg8yyyi
Thanks.
Kevin
anyone?