SteveDunn / Gleed2D

Generic Level Editor 2D
83 stars 28 forks source link

Behaviours not loaded? #33

Open Sku4l opened 12 years ago

Sku4l commented 12 years ago

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.

SteveDunn commented 12 years ago

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 notifications@github.com 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.