Skip to main content
gamedev.net
🔒 Locked

Learning angelscript

Started by GameEngineer_gi 4 replies 2.1k views
Original Post
GameEngineer_gi
GameEngineer_gi
Ok so I'm a newbie and could not find a previous post on this question. How do you simple read a "property" or variable from a script file? Also, is there any other additional documentation or articles for AngelScript? I don't mean to be critical but I've found the documentation sort of lacking. Regards, Steve
WitchLord
WitchLord
This is a known problem. ;) I'm trying to find the time to write some tutorials for the newcomers, but the problem is that it is just so much more interesting to implement new features than writing documentation.

If you want to access a property in the application from a script, then you must first register the property with the engine (see RegisterGlobalProperty).

On the other hand, if you want to access a global variable declared in a script from the application you can do so with the GetGlobalVarPointer method on the engine.

Feel free to ask anything.

Regards,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
GameEngineer_gi
GameEngineer_gi
I tried editing my last post but I forgot to log in so I am that "Anonymous Poster". :) Anyway what I was going to say was
that I forgot to mention that I am working on a set of "really simple", single file types of tutorials for the Game Institute. I'm going to show them to Adam Hoult for his blessing first before release but I can fire them off to you if you want them also. I know Lua but chose AngelScript for the tuts instead. So I'm having to learn a bit first. :)

Regards,
Steve
WitchLord
WitchLord
It would be absolutely great to have a set of tutorials written by the community for the community.

Will the tutorials from Game Institute be free for everyone to access?
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
Deyja
Deyja
I would suggest you post the tutorials up here too. Let the whole AS community proof-read them.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.