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
0 registered members (), 18,654 guests, and 5 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
Invisible entity #189474
03/19/08 12:52
03/19/08 12:52
Joined: Oct 2007
Posts: 85
H
harry3174 Offline OP
Junior Member
harry3174  Offline OP
Junior Member
H

Joined: Oct 2007
Posts: 85
Hi,

I have made action jo.

action jo()
{
cy=my;
set(my,INVISIBLE);
//cy.alpha=0;
if(b>=4) // b is global variable and increase when molecules are join.
{
set(my,VISIBLE);
}
}

I have take this action on cy entity.
When game starts cy is invisible but when b=4
it cant visible.

What should i do?
Please help.
Thanx

Re: Invisible entity [Re: harry3174] #189475
03/19/08 13:03
03/19/08 13:03
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
you have to check it in a while loop

Code:
action jo()
{
cy=my;
set(my,INVISIBLE);
while(1){
if(b>=4) // b is global variable and increase when molecules are join.
{
set(my,VISIBLE);
}
wait(1);
}
}



PS: use the code tags to display your code

Re: Invisible entity [Re: Scorpion] #189476
03/19/08 15:52
03/19/08 15:52
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Shouldn't it be reset(my,INVISIBLE) to make jo visible..


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus

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