How to make flying meteors using MoveTo and Rotate?

0 favourites
  • 3 posts
From the Asset Store
Simple resize and rotate events for any sprite, quick and easy event sheet that you can use for your own projects.
  • Hellooo

    I am making a side scrolling game with meteors that move from off-screen right to off-screen left, which players have to avoid. The meteors would look more realistic if they spin as they move.

    How to do that please?

    So far I have this:

    System -> Create object "meteor" at X,Y

    meteor -> Set collisions enabled

    meteor -> MoveTo X,Y

    meteor -> Set rotate speed to 10 per second

    Does MoveTo also set rotation speed? Can be disabled?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I suggest using Bullet behavior instead of MoveTo. With bullet you don't have to worry about the destination, you just specify the speed and moving angle.

    Make sure to disable "Set angle" in Bullet properties.

    You can also add "Destroy outside of layout" behavior, or use Fade behavior with long timeout to automatically destroy meteors when they are no longer needed.

  • Thank you dop2000 the "Bullet" behaviour worked well :)

    "Destroy outside of layout" behaviour wasn't functioning, because they spawn outside of layout and immediately destroy. Uncertain about long fade

    Instead a sprite outside of the end of the layout for meteors to collide with and destroy themselves works ok

    I have meteors!

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