Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 1,151 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Animated TGA with action #132791
05/30/07 21:57
05/30/07 21:57
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
Hey everyone,

I have a few animated TGA files in my level, which have been placed in the level via WED, with the correct filename format (filename+number.tga). These animate perfectly in the level until I assign an action to them. As soon as I assign them an action, they no longer animate. Is there a piece of code I should place in the action statement that will keep them animating?

Thanks!

Re: Animated TGA with action [Re: CBSection31] #132792
05/30/07 22:02
05/30/07 22:02
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
if (my.frame < (number after +)) {MY.FRAME += 1 *time_step;}
in loop should be enough


Never say never.
Re: Animated TGA with action [Re: CBSection31] #132793
05/30/07 22:03
05/30/07 22:03
Joined: Dec 2005
Posts: 252
MyOwnKingdom
nipx Offline
Member
nipx  Offline
Member

Joined: Dec 2005
Posts: 252
MyOwnKingdom
something like:


Code:
	
while(my.frame < <<yourNumberHere>>)
{
my.frame+=3*time_step;
wait(1);
}





nipx


edit: tompo, dont type so fast

Last edited by nipx; 05/30/07 22:04.
Re: Animated TGA with action [Re: nipx] #132794
05/30/07 22:27
05/30/07 22:27
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
sorry


Never say never.
Re: Animated TGA with action [Re: tompo] #132795
05/30/07 22:31
05/30/07 22:31
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
Thanks!!! It works perfectly!


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