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
3 registered members (Martin_HH, steyr, alibaba), 509 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
entering an area #81856
07/16/06 18:42
07/16/06 18:42
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
Hi,

I'm trying to make rain falling under a cloud. Here's my idea:

Place unvisible box under the cloud. When the player enters the box, activate the rain (I got the particle effects). When he goes out, stop the effect.

How to do this?

Thanks


Yeah! IE sucks, use Mozilla...
Marc Rémillard.
Re: entering an area [Re: Marky Mark] #81857
07/16/06 19:27
07/16/06 19:27
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
This is just an idea, I haven't tested it.
Code:

action box
{
my.INVISIBLE = ON;
my.PASSABLE = ON;
my.POLYGON = ON; // if it doesn't work, try c_setminmax(me); or something..
while(!player){wait(1);}
while(1)
{
if(((player.x < my.x + my.max_x) && (player.x > my.x + my.min_x)) && ((player.y < my.y + my.max_y) && (player.y > my.y + my.min_y)) && ((player.z < my.z + my.max_z) && (player.z > my.z + my.min_z))) // Count those brackets ;)
{
// Turn rain on.
}
else
{
// Turn rain off.
}
wait(1);
}
}



Re: entering an area [Re: Excessus] #81858
07/16/06 20:05
07/16/06 20:05
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
Working! thanks


Yeah! IE sucks, use Mozilla...
Marc Rémillard.

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