Doesnt matter fixed it. Didnt realize for each had to be on top. Same solution for the zombie problems.
Hi, it's because your event pick all the skeletons at once instead of looping for each of them individually, you need to use "For each" condition on top of the event that check the distance between player and skeleton
Thanks! However this still doesn't affect it and the skeletons still dont work
Full screen?
I changed the zombie placement to make this issue easier to see. Zombies all face a single direction instead of the direction they are moving. Skeletons movement will be done based on which way their bone (throwable weapon) is aiming.
dropbox.com/s/3di09v8o7avwhe4/Roots%20Of%20The%20Forest.c3p
With one zombie it works fine.
(Also skeletons are moving together based on a single skeleton instead of when i get close to one)
Zombie movement is handled under move to in enemies
Without seeing your events I cant be sure, but you could have conflicting movement demands as the enemy moves in and out of range. I like to use boolean instance variables that control what state the enemy is in. You can set them with your events. eg. If Enemy distance to player is less than 50 - set instance variable "Kite" to true If Enemy is Kite - (insert your custom kiting movement here and attacks here) - sub event - if Enemy distance to player is greater than (whatever you want) set Kite to False
Without seeing your events I cant be sure, but you could have conflicting movement demands as the enemy moves in and out of range.
I like to use boolean instance variables that control what state the enemy is in. You can set them with your events.
eg.
If Enemy distance to player is less than 50 - set instance variable "Kite" to true
If Enemy is Kite - (insert your custom kiting movement here and attacks here)
- sub event - if Enemy distance to player is greater than (whatever you want) set Kite to False
Yeah I thought about that. I decided I would have them move until they were 60 pixels away.
Okay thanks. Originally I was going to use 8 direction but came to the conclusion I wouldnt be able to move at 20° for example
So what behaviour am i moving it with?
distance(Skeleton.X,Skeleton.Y, PlayerBox.X, PlayerBox.Y) is less or equal to 60
set custom angle of motion to distance(Skeleton.X,Skeleton.Y, PlayerBox.X, PlayerBox.Y) - 180
accelarate custom 150
isnt working. Why is that?
Doest matter. Figured it out with custom movement.
Eh still haven't figured out how to make them move away. Should I be using custom movement for this?
It depends, LOS would give you more control n all. All the best for your project.
It depends, LOS would give you more control n all.
All the best for your project.
Okay thx. Seems simpler to do with the compare value so I will do that.
On my second run through and have run into the same problem. *sigh* Both default controls and enabled are ticked but there is still no movement happening.
On my second run through and have run into the same problem. *sigh*
Both default controls and enabled are ticked but there is still no movement happening.
Arrow key movement? Try sending the project file and I will take a proper look.
Develop games in your browser. Powerful, performant & highly capable.
Awesome thank you. Should I use line of sight? Combat is usually pretty close.
Seems really cool! Well done!