Game Art and Physics
Hello once again in my game i have a player that is moving through a neon path from left to right and the issue is i need the player stay within the path (make the path like a wall). I tried to make the player collide with the path but that would not work because the path image itself contains a lot of invisible space so the player just collides with the invisible space instead of the actual path itself. How would i make it so that the player would only collide with the path instead of the entire image. I though of putting invisible actors that would go on the path to make them like walls but that seems way too time consuming is there a more efficient way of doing this? heres a screen shot of the player within the paths during gameplay i tried cropping the image but that simply wont work as well:
http://postimg.org/image/3x4cub5t9/
and also heres a screenshot of what the path image looks like in gimp so you know what i mean by "invisible space":
Comments
Is there a way for game salad to only detect the actual pixels of the image instead of the entire image itself
No, there is no pixel level collision detection. You have the option of Rectangular or Circular.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I hadn't read your previous question before, but your idea about the invisible actors is exactly how you'd have to do that in Gamesalad.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
@jamie_c well if that is the only way to do it then i better get to work lol thanks
I don't know what you mean by time consuming. Are you making invisible actors over the walls? All you have to do is make a smaller actor than your player and constrain them together. Then use the smaller actor for collisions.
Need Help? Email Me | Templates | Full Game Source Code