Gleed2D icon indicating copy to clipboard operation
Gleed2D copied to clipboard

Behaviours not loaded?

Open Sku4l opened this issue 13 years ago • 1 comments

Hello,

I have managed to load levels and lights in my game pretty easily thanks to this project, but I am really confused on how I can access the behaviours from my game code. If I add some to my level using the Editor, then I cannot find the behaviours anywhere in the "level" object.

It seems that they are not loaded when I am using the LevelLoader.Load method (not found in layers, items or itemProperties), am I right? Did I miss something like using a plugin or another function to load and access them?

Sorry if this question is answered somewhere... and big thanks for the project

S.

Sku4l avatar Aug 27 '12 12:08 Sku4l

Hi, The Behaviours plug-in should simply write the properties of each behaviour to each object in the objects' properties collection. I'll take a look and let you know what I find.

Cheers,

Steve

On 27 August 2012 13:29, Sku4l [email protected] wrote:

Hello,

I have managed to load levels and lights pretty easily thanks to this project, but I am really confused on how I can access the behaviours I add to the level using the Editor.

It seems that they are not loaded when I am using the LevelLoader.Load method (not in layers, items or itemProperties), am I right? Did I miss something like using a plugin or another function to load and access them?

Sorry if this question is answered somewhere... and big thanks for the project

S.

— Reply to this email directly or view it on GitHubhttps://github.com/SteveDunn/Gleed2D/issues/33.

SteveDunn avatar Sep 02 '12 20:09 SteveDunn