Actor rotates around when colliding with the platform

Neil7650Neil7650 Member Posts: 16
edited August 2014 in Working with GS (Mac)

Hello everyone,
I am trying to make an infinite endless runner game. When I tell the actor (character) to jump, I don't want it to go below the platform actor (ground.) I added the collide with platform attribute onto the character. When the character hits the platform, it goes up and rotates around and won't stop rotating. So when you go up or down, the actor is just rotating around everywhere. I tried everything I could to stop it from rotating. Can someone please help me fix this problem ASAP?
Thanks,
Neil7650

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    You can go into the actor's physics attributes and check the 'Fixed Rotation' box.

  • Neil7650Neil7650 Member Posts: 16

    When I select fixed rotation, the character doesn't even collide with the platform, it goes below the platform. It doesn't collide with it.
    Thanks

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    Hmmm.... that shouldn't affect the actor that way.

    How are you getting the actor to jump and to fall?

  • Neil7650Neil7650 Member Posts: 16

    I created an attribute called jump button. I also made an actor called jump button. If the jump button actor is pressed or the up key is down, the attribute jump button is changed to true.
    In the character, I created a rule that when the jump button attribute is true, the character should move in the direction 90 at speed 100, otherwise it should move in the direction 270 at speed 100.
    Thanks

  • Neil7650Neil7650 Member Posts: 16

    Someone please help ASAP!!!
    Thanks

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    @Neil7650‌ -- Sometimes it takes a while for someone to get back to you. I only have precious minutes to get on the forums these days.

    There must be something else going on. I have recreated your setup (from your description). But I am not seeing the same results you are getting. Take a look at the attached file and compare it with your setup.

  • Neil7650Neil7650 Member Posts: 16

    Thank you very much for your help. What you did was invaluable. This solved my problem.
    Thanks,
    Neil7650

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    Glad it was useful! You are welcome.

Sign In or Register to comment.