Bug with my game

I’ve been working on an enemy AI and it keeps freezing at one point. It runs through one loop, then it freezes when it gets to the teleport bundle and returns this error


I think it has something to with either the ease or random behavior…
@grazer

1 Like

well idk how but I fixed it by setting the velocity to 0 every time it teleports

Edit: I was wrong it’s not fixed. I think the velocity from the fireball attack is somehow reaching an incredibly large number

2 Likes

Somehow this code bundle i making the object move very fast, but I can’t figure out why.

Ok so I have finally isolated the problem. For some reason, it is the friction equations that are outputting some extreme value


I added a limiter on them and sure enough, they trigger them when the fireball attack is over.
the thing is, the x and y velocity inputs are completely normal.

Best one-man conversation ever

1 Like

Ok so this is still not solved.
Whenever the coefficient is larger than 10, it bugs out and applies a massive amount of force.


It’s worked with every other enemy I’ve made but not this guy

What is the object called? And a link pls

e_wizard
The bundle is the friction bundle
The wizard is spawned in the tower level when a player hits the green x

Currently I am fighting the wizard and I am only seeing two attacks I don’t see any overpowering force(Speed wise)

1 Like

That is because I set the friction coefficient to 5, if you go in the editor and change it to 15 then the bug happens

May I ask what the reason is for setting it to 15?

currently when the wizard isn’t doing his fire circle he has very little frictional force on him. If he takes knockback then he gets sent flying away. This makes it very hard to fight as the centipede.

setting it to 15 makes it so that he doesn’t go flying.
The problem is it bugs out somehow

Ok I do not see the friction bundle

for some reason it disappeared, but I added it back in. The bug is happening consistently now