who can give me an advise how to attach angelscript to game mainloop

Started by
1 comment, last by yzslhawk 14 years, 5 months ago
in angelcode GUARD guard;//GUARD is a registered c++ class,hav render() update() void Action() { guard.DragSword(); guard.Attack() } c++ mainloop update() { GUARD::Update();//only to explain } Render() { GUARD::Render(); } for Action not to be executed in one frame, how can i to execute Action in several frames. thank you
Advertisement
You should take a look at the sample Concurrent scripts. It shows how the Context manager add-on can be used to do what you want. That is, to manage long running scripts that execute over several frames.

Regards,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

thank you very very much.

This topic is closed to new replies.

Advertisement