Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
blinking characters #281935
07/29/09 14:47
07/29/09 14:47
Joined: Nov 2008
Posts: 215
V
vertex Offline OP
Member
vertex  Offline OP
Member
V

Joined: Nov 2008
Posts: 215
I want characters (mdl entities) to blink via a texture swap. An eye closed texture would replace the standard one for a brief moment based on a random time variable. The random variable would be abble to affect each entity.

General guidance and related engine functions appreciated as well as any code. Other folks might be able to use this as well.

Re: blinking characters [Re: vertex] #281939
07/29/09 15:16
07/29/09 15:16
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
change the skin of the entity - you could e.g. use something like this to change the skin:

Code:
my.skill21 += 1 * time_step; // Random skill
my.skill21 %= 10;

if(my.skill21 >= 9)
{
	my.skin = 2;
}
else
{
	my.skin = 1;
}



Just place this code in the main loop in the action of an entity, and make sure that the entity got two skins smile

Re: blinking characters [Re: Claus_N] #281955
07/29/09 16:58
07/29/09 16:58
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
i posted into wrong topic... plz delete..

Last edited by Espér; 07/29/09 16:59.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<

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