Hello
I am considering purchasing the engine, it seems to be quite powerful in terms of lighting and arranging objects/models in a scene. However, through watching the videos and reading some material I still don't understand how exactly it's linked to the programming side of the application.
For instance, in Unity, you can drag and drop elements so as to organise your scene, plus you can write scripts and attach them to gameobjects and pressing the Play button allows you to test the behaviour written INSIDE the scene edited.
Can you do this in SunBurn? Basically if I write a class that makes a character move upon key pressing, can I test this in the scene that I have lit/edited in SunBurn or are they two completely separate processes?
Thank you for your time!
Hi neo,
The editor opens up in your active game allowing you to edit and make changes in real-time and with all of your game events, logic, and custom objects in place and active.
While you can't write scripts in the editor, you can use mouse, keyboard, and gamepad buttons to trigger your game logic and play it back while the game and / or editor are running. Please note SunBurn does not have a scripting language (like lua or similar) instead you can use game and object events to trigger simple C# event handlers (similar to writing code behind UI elements in .Net).
Let me know if this helps!
Follow me on Twitter – development and personal tweetsAwesome XNA Videos – Lighting, Rendering, and game videos
Thanks for your response! I think I understand. So basically the game is still coded in Visual Studio and when you run it it plays in the SunBurn editor for you to edit elements of the scene?
You said you can trigger C# handlers from the editor, so for instance, say an object bounding box, you can use the volume created in the editor to trigger a C#/XNA collision event in visual studio?
neo187:say an object bounding box, you can use the volume created in the editor to trigger a C#/XNA collision event in visual studio?
Yes, but you still need to hook up the event via code in VS.
The editor (at the moment) is really just for placing objects and attaching pre-defined components. For placing things like cameras and waypoints you'll need to develop your own managers which you can add in to SunBurn..... or you can download Philippe Da Silva's IGF (Indiefreaks Game Framework) which provides a lot of extra stuff for free. :-)
http://indiefreaks.com/indiefreaks-game-framework/