Raised This Month: $ Target: $400
 0% 

Creating sprites


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mammapappa
Member
Join Date: Nov 2008
Old 08-12-2013 , 18:10   Creating sprites
Reply With Quote #1

Hi i have a problem with making sprites the right size could somone make me a code for this sprite

This is what i need help with to only show 1 big sprite instead of many small ones

PHP Code:
                new Float:origin1[3];
            new 
Float:origin2[3];
            
entity_get_vector(entEV_VEC_originorigin1);
            
entity_get_vector(entEV_VEC_originorigin2);
            
origin1[0] -= 32.0;
            
origin1[1] -= 32.0;
            
origin1[2] += 10.0;
            
origin2[0] += 32.0;
            
origin2[1] += 32.0;
            
origin2[2] += 10.0;
                
            
//get a random height for the flame
            //new randHeight = random_num(0, 32) + 16;
                
            //show some effects
            
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
            
write_byte(TE_BUBBLES);
            
write_coord(floatround(origin1[0], floatround_floor));    //min start position
            
write_coord(floatround(origin1[1], floatround_floor));
            
write_coord(floatround(origin1[2], floatround_floor));
            
write_coord(floatround(origin2[0], floatround_floor));    //max start position
            
write_coord(floatround(origin2[1], floatround_floor));
            
write_coord(floatround(origin2[2], floatround_floor));
            
write_coord(48);                    //float height
            
write_short(gSpriteIdHeal);                //model index
            
write_byte(1);                        //count
            
write_coord(1);                        //speed
            
message_end(); 
Attached Files
File Type: zip heal.zip (19.6 KB, 40 views)

Last edited by mammapappa; 08-12-2013 at 18:23.
mammapappa is offline
 



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 16:00.


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