ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > CopperCube > Feature requests and bug reports
Webgl AI not functioning properly
Author Text

wobbles
Registered User
Quote
2016-12-27 12:04:11

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


niko
Moderator
Quote
2016-12-27 16:20:42

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.


wobbles
Registered User
Quote
2016-12-28 23:58:30

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


wobbles
Registered User
Quote
2016-12-29 00:16:42

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


niko
Moderator
Quote
2016-12-29 09:09:55

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.


wobbles
Registered User
Quote
2016-12-30 18:47:35

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


niko
Moderator
Quote
2017-01-01 07:37:54

Thanks!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (you are not logged in)


Text:

 

  

Forum Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   





Software: Ambiera Light Forum. © 2008-2015 Nikolaus Gebhardt, Ambiera e.U.