Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Visual Editor Bug?

Author
Message
linkertt
5
Years of Service
User Offline
Joined: 20th Feb 2019
Location:
Posted: 27th Feb 2019 01:42
In this picture it states total entities = 4, while below it lists every entitie in the current scene. The text isnt from a selfmade printcommand, it comes from the afk function"VisualEditor_ShowDebug".
The function contains this : print ( "Total entities = " + str ( VisualEditor_Scenes [ scene ].entities.length - 1 ) )
Its got a -1 at the end. But that -1 is right sometimes but not everytime. Like in my first scene the command "VisualEditor_Scenes [ scene ].entities.length - 1 " states i got only 1 entitie in my current scene.

Attachments

Login to view attachments
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 27th Feb 2019 18:37
is it possible it's counting unique entities? (there is 2 virtual buttons so it counts that as 1 entity?)
life's one big game
spec= i5 4ghz, 16gb ram, Nvidia 1070ti gpu
linkertt
5
Years of Service
User Offline
Joined: 20th Feb 2019
Location:
Posted: 28th Feb 2019 21:05
Sadly not. When i go to a scene with 10 sprites it prints out: Total entities: 9.
But when i got a scene with only 1 entitie it prints out corretly just 1 entitie.
thx for the reply tho!

Login to post a reply

Server time is: 2024-11-05 23:06:30
Your offset time is: 2024-11-05 23:06:30