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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,040 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
Ring around a shapre #204819
05/01/08 20:57
05/01/08 20:57
Joined: Jun 2007
Posts: 63
Italy
Sonic220 Offline OP
Junior Member
Sonic220  Offline OP
Junior Member

Joined: Jun 2007
Posts: 63
Italy
I don't know how to do, sometimes i do thing that for me must work, but really don't, i spend one hour and half trying to figure out why, but still, with this simple piece of code i can't make something like a ring that roteate around a shapre.
 Code:
action level {
	my.x = player.x;
	my.z = player.z;
	my.y = player.y;
	my.transparent = ON;
	my.alpha = 100;
	while(1)
	{
		my.x = player.x;
		my.z = player.z;
		my.y = player.y;
		if(my.alpha > 0){
			my.alpha -= 5;
		}
		my.roll += 10;
		wait(3);
	}
}

So, however it's hard for me to learn (cause i don't know eng so mutch)
i want to understand why it doesn't work.
Fist thing, the rings gain the same x,y,z of the player.
then, cause i want to make it appear, i've set his trasparent to on.
infinite loop, the ring always have the same coordinates of the player and when it is invisible in fade by the time.

Thx all for help, cause i still want to learn and maybe one day help other people


~Vision Divine~
Re: Ring around a shapre [Re: Sonic220] #204833
05/01/08 22:32
05/01/08 22:32
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
I guess your ring will disappear so fast you can hardly see it. Try "my.alpha -= time_step / 4". Even try setting the entities visible flag to on. Ensure the code executed at all by placing a "beep();" at the beginning of your action.


Always learn from history, to be sure you make the same mistakes again...
Re: Ring around a shapre [Re: Uhrwerk] #204900
05/02/08 11:13
05/02/08 11:13
Joined: Jun 2007
Posts: 63
Italy
Sonic220 Offline OP
Junior Member
Sonic220  Offline OP
Junior Member

Joined: Jun 2007
Posts: 63
Italy
I see the ring, it must be transparent and then fade to become visible.
I've used to play beep, i don't listent to nothing, i thik the code isn't executed.
Why? Oo


~Vision Divine~

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