Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (ukgamer), 8,474 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 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