|
|
Problem on sprite
#374477
06/19/11 08:04
06/19/11 08:04
|
Joined: Aug 2010
Posts: 131 Iran
Mafia_IR
OP
Member
|
OP
Member
Joined: Aug 2010
Posts: 131
Iran
|
Hi guys , why when i use this line of code (1) i have no problem but when i use second line of code, engine can not open sprite : (1)
ent_create("fire.tga", vector(0,0,0), fire_loop);
(2) problem is here .
ent_create("fire+5.tga", vector(0,0,0), fire_loop);
and picture is here : http://up.iranblog.com/images/6926zlzu2my91ji3898v.tgathanks . 
|
|
|
Re: Problem on sprite
[Re: Mafia_IR]
#374485
06/19/11 10:32
06/19/11 10:32
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
I think the problem might be that the sprite is not a width of 5*number. The engine tries to devide the image into 5 parts of even sizes, so the width must be dividable by 5. Try scaling the image down to 1120 instead of 1122 pixels, then retry.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: Problem on sprite
[Re: Espér]
#374501
06/19/11 14:33
06/19/11 14:33
|
Joined: Aug 2010
Posts: 131 Iran
Mafia_IR
OP
Member
|
OP
Member
Joined: Aug 2010
Posts: 131
Iran
|
thanks for these tips !  it was solved ... can you give me an example of lite-c (code) for jumping ?
Last edited by Mafia_IR; 06/19/11 14:45.
|
|
|
|
|
|