Actor's image jumps to the right and moves with camera.
nathan.sellers@snhu.edu
Member Posts: 3
I have an actor that can't be moved. When the game starts the image for that actor jumps to the right and then moves along with the camera which is following the player actor. When the player gets to the location of that non-moveable actor which you can no longer see because the image is stuck to the right, the player can still interact with that actor, jump on top of it. Has anyone seen this issue? Thanks.
Comments
It sounds like you may have unlocked an actor on the scene and created an instance with its own rules. What happens when you delete the problematic actor from the scene and add it back in? After doing that, double check its rules and physics attributes (e.g. moveable).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I see what you are thinking. To test this issue I added a completely new actor and set its physics to not be moveable. I have taken some screenshots of the behavior. I have used one of the test games that ships with GameSalad for Mac. This is the same behavior that one of my students game is seeing. I was able to reproduce this issue within the test Penguin game. If you would like a copy of the students game let me know. It is interesting to note that I did not see this behavior in the penguin game until after I tested the students game on my mac.
Actor Properties
Before Game Start Position:
After Game Start the position of the actor moves with the initial camera move and then follows the camera and is stuck on the right of the screen.
Check what layer the actor is on. Is it perhaps on a non-scrolling GUI layer? If so, move it to a different layer.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Yes, if you could compress the project file as a .zip file, upload it to a file-sharing site and then post the download link here (or send it to me via private message if you prefer), I'll take a look.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thank you very much for taking a look at this. This file is the students game and they are seeing the same issue with some what should be their stationary platforms moving with the camera. Thanks again!
https://app.box.com/s/75zbh1ylg4pt33ia0t1k6acumnqja2jp
Of the four blockTile actors that make up the "ramp" just below the white blockBreak actor at the right viewable edge of the scene, three are on a non-scrollable layer and therefore won't move when the camera moves. Those three need to be moved from the layer called TopUI to the layer called PenguinAndFish. There's also one more blockTile actor farther to the right that should be moved to a scrollable layer as well.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Here's a video showing the problem and solution (I recommend watching it on YouTube at the largest size & quality; it does not have any sound):
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User