Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, AndrewAMD, degenerate_762), 1,429 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | chip programmers | 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