Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, I'm new to this software so I might have done something wrong on my end, so correct me if I'm wrong. But I have this problem where I have an enemy that shoots at the player every few seconds. When I export to exe it works just fine as I intend it, but when I export to WebGl, my enemy shoots in a random direction somewhere in the sky instead of shooting at the player. If anyone knows how to fix this issue I would be very grateful, thank you for reading this, have a nice day! -Wobbles |
||||
|
Hm, that's strange. You you using some custom JavaScript or downloaded action or behavior? If so, when running in the browser, try opening the JavaScript console and see if there is an error printed. In Chrome, you can do this by pressing Ctrl+Shift+I, errors are listed in the bottom in red text. |
||||
|
Hmm, no. There are no error's showing up. Have you hade this issue before? I'll try to create a new project and see if the problem is repeatable. I'll post an update when I'm done. -Wobbles |
||||
|
I have finished my experiment, I made a very basic scene where I put a static model, I gave it game actor behavior, I made it shoot at the player every second. I ran the scene in windows exe and it worked just fine, but when I ran it in WebGl, the mesh started shooting randomly instead of shooting at the player. You should check this for yourself, I think it's a bug that has been unnoticed. -Wobbles P.S. This same issue also occurs with flash export |
||||
|
Just tried it out, it works for me nicely in all targets. Probably I have setup it some how differently than you. Maybe you could send me the .ccb file? See support -> contact, there is a email adress written. |
||||
|
I have send my test file to you, I hope you could take a look at it. Maybe I've configured my AI wrong. -Wobbles |
||||
|
Thanks! |
|