How set enemy

0 favourites
  • 8 posts
From the Asset Store
*********** Fidget popper tile sets **************
  • i want made a space game.. and want enemy come in map and stay in one place... and sometime he try to follow a player...

    someone can help??

  • There're plenty of tutorials for enemy spawning and enemy follows on Youtube, I recommend you to take a look

  • do you have programming experience? you probably need to make some enemy "states"

    state = 'pursue'

    state = 'hold'

    if enemy.state = "pursue" 
    {
     accelerate 50 towards player
     if distance between player and enemy < 100 Set state to "hold"
    }
    
    if enemy.state = "hold"
    {
     slowly decelerate to 0
     if distance between player and enemy > 150 Set state to "pursue"
    }
    
  • do you have programming experience? you probably need to make some enemy "states"

    state = 'pursue'

    state = 'hold'

    > if enemy.state = "pursue" 
    {
    accelerate 50 towards player
    if distance between player and enemy < 100 Set state to "hold"
    }
    
    if enemy.state = "hold"
    {
    slowly decelerate to 0
    if distance between player and enemy > 150 Set state to "pursue"
    }
    

    no no have experience... but for put this code??? where i can write ???

  • you would have to use events.

    If I were you do a few beginner tutorials to get comfortable before you take on something this challenging.

    Following a player involves programming even though Construct's tagline is "no programming required" you still need to understand the basics of programming.

    The good news is that through using Construct you will learn programming. Start with some easy tutorials then move on to "AI" (which is somewhat intermediate to advanced skill level)

  • youtube.com/watch

    youtube.com/watch

    youtube.com/watch

    Here is 3 tutorials about enemy following player, you should find what you need here;

    Don't forget to check youtube tutorials if you struggle on something, there are high chances that you find what you need

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • youtube.com/watch

    https://www.youtube.com/watch?v=jJS4ywYI2WA

    https://www.youtube.com/watch?v=3te_iUwfh1w

    Here is 3 tutorials about enemy following player, you should find what you need here;

    Don't forget to check youtube tutorials if you struggle on something, there are high chances that you find what you need

    tnk to answer me.. follow player is simple... i not understund what i do for make enemy in game like a game galaga like this youtube.com/watch

    look enemy come in screen from out and he set in position...

  • You're looking for a more advanced type of movement, in C3 it can be achieved with tweens and timelines, you should look for those tools :

    construct.net/en/make-games/manuals/construct-3/behavior-reference/tween

    construct.net/en/make-games/manuals/construct-3/plugin-reference/timeline

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