tapasa's Recent Forum Activity

  • Hi, I have two solid objects(player and rock). The player have custom movement, when I press "W" it accelerates vertically -20000 and sets player variable "moving " to 1(initialized with 0). have WASD for the controlls(the same as the "W" but different dorections).

    When player collides with a rock and moving is 1 accelertion from customMovement is setted to 0 and variable moving to 0 too.

    The problem is when the player colllides with a rock, first if the player just rub the rock without a "collision" it stops and if the player collides with the rock it overlaps inside.

    Anyone have any idea what can I do?

    Thanks in advantage :d

  • Okay, I get this, I think is good, but it doesn't stops..

    rotarIz -> rotateLeft

    rotarDer -> rotateRight

    velRot -> Rotate speed

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hmm..true, I will be testing some things to see if i get something-

    Thank you very much for your help

  • I'm not really sure what you mean..

    Do you want to add an extra condition to the button event?

    Something like:

    System compare two values LayoutAngle < 270

    I mean this: When is press a key, the Layout rotates 90º (LayoutAngle = 90) and the rotation stops. If i press it again the Layout rotates 90º more(LayoutAngle = 180). then I press again and 90º more(LayoutAngle = 270). When I press it again, it never stops rotating(Loop).

    Here the code for that:

    newAngle is a GlobalVar initialized to 0.

  • It works, but it doesn't stop when LayoutAngle is grater than 270º. Any idea?

  • I'll try this, many thanks .

    I will tell later if it doesnt works

  • Have you looked at the rotating platformer example shipped with Construct2?

    Yeah, I did it, but is not exactly what I want. The example rotates every tick towards the player. I want to rotate the Layout 90º when a key is pressed and you can see how it rotates. I mean: LayouAngle(0) += 1 until LayoutAngle(0) = LayoutAngle(0) + 90.

    Incrementing the layout angle in 1 until 90, 180, 270, 360. And if its >= 360, put it on 0.

    I have the idea in code, but not in Events xD

  • Yes, including gravity, at once, like the world rotating.

    Its for a platformer game.

  • I'm trying to make a game that rotates the Layout 90º if you press a key and rotates -90º if you press another key.

    How can I rotate the Layout and the gravity?

    When the Layout rotates you can see how it rotates, is not instantly.

    Thanks in advantage. ^-^

tapasa's avatar

tapasa

Member since 26 Oct, 2015

None one is following tapasa yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies