Raised This Month: $ Target: $400
 0% 

Sprite Solid?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 02-13-2022 , 10:44   Re: Sprite Solid?
Reply With Quote #1

First thanks again for the help and guidance

i try this, but the black background was still
PHP Code:
entity_set_int(amaterasuEV_INT_rendermodekRenderTransTexture);
entidad_set_float(amaterasuEV_FL_renderamt255.0); 
so i try, and now remove the black background, but the animation of the sprite is not done, is it possible to do it?

PHP Code:
new Float:vOrigin[3]
    
vOrigin[0] += aimvec[0]
    
vOrigin[1] += aimvec[1]
    
vOrigin[2] += aimvec[2]
    
    new 
amaterasuaowner id
    
new amaterasu create_entity("env_sprite")
    
    
entity_set_string(amaterasuEV_SZ_classname,"amaterasu")
    
entity_set_model(amaterasu,"sprites/shmod/blue_flame.spr")
    
entity_set_int(amaterasuEV_INT_solid2// solid
    
    // I wanted to remove this to see if it made the animation but no
    //entity_set_int(amaterasu, EV_INT_movetype, MOVETYPE_NONE) // don't move
    
    
entity_set_edict(amaterasuEV_ENT_owneramaterasuaowner)
    
entity_set_int(amaterasuEV_INT_rendermodekRenderFxNoDissipation);
    
set_rendering(amaterasukRenderFxNoDissipation02550kRenderGlow255// put this to remove the black background of the sprite
    
    
entity_set_origin(amaterasuvOrigin// put your origin here : Float:{X , Y , Z}
    
entity_set_vector(amaterasuEV_VEC_originvOrigin
I don't know if you can see it in the image, but the size of the sprite is blue, green is what I do with the code, I would like it to be like blue

Arje is offline
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 02-13-2022 , 11:14   Re: Sprite Solid?
Reply With Quote #2

well i found the solution find the solution to achieve the animation:

PHP Code:
entity_set_float(amaterasuEV_FL_animtime1.0// I'm not entirely sure about this, but I think it is the time in which the sprite will animate.
    
entity_set_float(amaterasuEV_FL_framerate1.0// Frames per second.
    
entity_set_int(amaterasuEV_INT_spawnflagsSF_SPRITE_STARTON// Essential if the animation is playing, I think.
    
dllfuncDLLFunc_Spawnamaterasu 
but how can I increase the size of the sprite so that the green is more similar to the blue?
Arje is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode