How do I Make an object fall from sky and follow player

0 favourites
  • 8 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • How do I Make an object fall from sky and follow player Avoider game

  • You should probably just figure this out but...

    You spawn the object (physics / platformer whatever you're looking for) at the top of the screen (for example at Y = -10 X = random(windowwidth) ) and have another event on collision with the ground, which sets a (boolean) variable that describes whether it is "activated". When it is activated: if X < player.x move right else move left.

    That's if you have a flat game world, otherwise I wish you luck with your AI.

  • didint work this is a avoider game not platformer

  • woddakota so you want like a guided missile?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just spawn an object with the bullet behavior and set the bullet's angle to angle towards the player

  • What are you trying to do? Is this similar to some retro space shooters? Are you walking on a platform or suspended in the air? Do the objects follow you only after a certain point?

    If this is suspended in the air, that's easier than above. You have them spawn, they drop automatically, you dodge them.

    Also, if Sargas is right, then you just have your physics or whatever apply forces / move towards the player.

  • the tnt still dont move i set the angle of motion on 0 cus my players is on 0 and tnt box dont move i put on start of layout set tnt box angle of motion to 0

  • woddakota ok, listen, you really need to put more effort into this if you want people to help you, the forum is not a magical place where all your dreams come true. you'll need to give in order to get back.

    at least use punctuation in your sentences.

    You're assuming we will just understand what you're talking about, and we haven't even seen what you're doing. and we have 0 context to go by.

    please read this before going any further:

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