Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,631 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem on sprite #374477
06/19/11 08:04
06/19/11 08:04
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline 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)
Code:
ent_create("fire.tga", vector(0,0,0), fire_loop);



(2) problem is here .
Code:
ent_create("fire+5.tga", vector(0,0,0), fire_loop);



and picture is here :
http://up.iranblog.com/images/6926zlzu2my91ji3898v.tga

thanks . laugh

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 Offline
Expert
Germanunkol  Offline
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: Germanunkol] #374488
06/19/11 11:13
06/19/11 11:13
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Germanunkol is right.
As second a Tip:
Your Sprites will have a white outline, cause your Alpha Channel doesn´t fit the fire.. I think you need to clean up the fire edges and create a new alpha channel.


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
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 Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
thanks for these tips ! wink 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.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1