Having Problems with Instances

0 favourites
  • 3 posts
  • So in my game i just started working on the enemy AI im doing the slime monsters first so i been having this problem where, everytime the system spawns a new slime object they dont follow right behaviors for example i have a instance thats already on the map and it follows all the states correctly (walk,attack,hurt,death) but the slimes created by the system dont they will only follow me around the map and when they get close they will stop and wont play the attack and on death they get stuck in idle. I was also making these enemies form this tutorial https://www.youtube.com/watch?v=ifhkZZroESQ&t=236s

  • It's hard to debug anything without having the project at hand.

    As you describe it and from what I can see on the screenshots, my guess is that newly spawned slimes are somehow different from the first one. In "On start of layout" you set the slime state to "walk" which does work for the first slime that's already there but every slime spawned after will not have the state set to "walk", so perhaps you should take this out of "On start of layout" and put it into the "On slime created" trigger. Maybe that's the issue?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • oh i ended up figuring it out so turns out i had ot readjust some of the states they were conflicting with eachother

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