Facing Help

0 favourites
  • 6 posts
From the Asset Store
Fully animated four directional dungeon guards pack
  • Hi Guys,

    I am creating some asteroids for my space shooter, and i was wondering about facing while moving. It seems every time i change the angle, it change by itself to 90 because the object its heading that way:

    System > Every X Second: System > Create Asteroid on layer .....

                             asteroid > Set Angle to 90 Degrees

    So by having Angle to 90 degrees and speed the asteroid will move to bottom from his spawn position. My question is how to changie his facing to a random(x,y) position while having his direction unchanged.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You mean like this ?

  • i see u got 110 version, i am using free version(108) for now until December.

  • Print screen to the rescue

    Just note the arrow box has been given the bullet behaviour with the following characteristics

    Speed : 400

    Acceleration : 0

    Graity : 0

    Bounce Off : No

    Set Angel : No

    Also it has the instance variable of a number called Rotatiom (that's an intentional typo)

  • Thanks for trying to help, but it seems its happens the same, this time the object moves to 360, check the enemy group:

    I managed to make a object rotate while moving with Rotate and Move forward. But still i have problems with facing.

    I want to spawn object outside the screen, apply a random facing, move it to a direction. But every time i do this, the object faces the path he is goin to.

    freetogame.com

  • set rotationm to random(360) you forgot the random

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)