Creating animated sprites with vexd/engine.. ?
I imagine it's possible, but i've been trying a while to create a sprite with vexd's hl engine natives. The sprites i'm trying to create are supposed to be animated, but they dont animate when created.
I'm sure i just need to set the entity vars for the sprite, because i've successfully created models in the past and animated them using _sequence and _framerate, but i'm unsure of the entity vars needed for animated sprites. anyone help me out here? thanks. Edit: Topic change ( more specific ) |
after some testing i've figured it out.
In order to create an animated sprite with the vexd (amx) or engine (amxx) module, you must do the following: a) create the entity (must be env_sprite) b) set the model name c) set the framerate d) dispatch There are many ways to create entities with vexd, whether you use DispatchKeyValue, or simply the entity variable setting functions (EV_INT_etc), and any ways can be used as long as they follow this model for animating sprites. Examples: Code:
Code:
From here you can now set any other entvars for the entity, including scale, classname (for easy remove_entity_name() reference), etc etc etc. Hope this information is useful to someone out there. |
Thanks for this, good information to have archived :)
|
Quote:
|
| All times are GMT -4. The time now is 14:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.