1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Windows issue: stuck in the wall

Discussion in 'Programming' started by ElevenEleven, Nov 8, 2019.

  1. ElevenEleven

    ElevenEleven Member

    Joined:
    Nov 7, 2019
    Posts:
    4
    Hello again GM Community, I am having a slight issue with something basic, I have a "player" object which gets stuck inside the wall when I move to the left or right, once it is stuck there is no movement and I have to close the window, below is a screenshot of the issue and basic code I am working with:
    upload_2019-11-8_17-20-29.png
    upload_2019-11-8_17-20-20.png


    Thanks in advance
    11:11
     
  2. ElevenEleven

    ElevenEleven Member

    Joined:
    Nov 7, 2019
    Posts:
    4
    Sorry guys I figure it out I had a minus (-) instead of a plus (+) in the horizontal collisions,

    sorry again.
    11:11
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice