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":

http://postimg.org/image/i3a3026mr/

Comments

  • peterraadpeterraad Member Posts: 56

    Is there a way for game salad to only detect the actual pixels of the image instead of the entire image itself

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    No, there is no pixel level collision detection. You have the option of Rectangular or Circular.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited July 2014

    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.

  • peterraadpeterraad Member Posts: 56

    @jamie_c well if that is the only way to do it then i better get to work lol thanks

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    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.

Sign In or Register to comment.