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
3 registered members (AndrewAMD, 7th_zorro, dr_panther), 1,297 guests, and 6 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
Explosions-Effekte [Aum] #281802
07/28/09 18:52
07/28/09 18:52
Joined: Oct 2005
Posts: 612
Inari Offline OP
User
Inari  Offline OP
User

Joined: Oct 2005
Posts: 612
Hallo,
in den Aum´s gibt es ein Beispiel für Explsoions-Effekte. Leider funktioniert der Effekt mit den herum fliegenen Trümmern nicht,
statt das sie versträut herunter fallen und ein wenig weiter hompsen, fällt nur ein großer Klumpen davon gerade herunter.
Weiß jemand woran der Fehler liegt?

Hier der Code aus den Aum,
Code:
// Eigenschgaft des Effektes
function move_gibbits()
{
	var gib_coords;
	var gib_speed;
	my.passable = on;
	my.scale_x = 0.5 + random(1);
	my.scale_y = my.scale_x;
	my.scale_z = my.scale_x;
	vec_set (gib_coords, my.x);
	gib_speed.x = (10 - random(20)) * time;
	gib_speed.y = (10 - random(20)) * time;
	gib_speed.z = (20 + random(10)) * time;
	my.skill10 = 10;
	while (my.skill10 > 0)
	{
		if (vec_dist (my.x, gib_coords.x) > 70) 
		{
			my.passable = off;
		}
		ent_move (nullvector, gib_speed);
		effect (debris_trail, 1, my.x, nullvector);	
		
				if (bounce.z != 0)
				{
						gib_speed.z = -(gib_speed.z * min(0.8, random(1)));
						if (gib_speed.z < 0.1)
						{
								gib_speed.x = 0;
								gib_speed.y = 0;
								gib_speed.z = 0;
						}
				}
				

		gib_speed.z -= 2 * time;
		my.skill10 -= 0.3 * time;
		wait (1);
	}
	my.transparent = on;
	my.alpha = 100;
	while (my.alpha > 0)
	{
		my.alpha -= 3 * time;
		wait (1);
	}
	ent_remove (my);
}





// Aufruf Funktion des einzelnen Explosions-Effekte
function start_explosion(coordinates)
{
	var sound_volume;
	var number_of_gibbits;
	sound_volume = 30000 / (vec_dist(coordinates.x, camera.x) + 100);
	snd_play (explostart_wav, sound_volume, 0);

...

	number_of_gibbits = random(15) + 5;
	while (number_of_gibbits > 0) // while without wait!
	{
		ent_create (gibbit_mdl, coordinates, move_gibbits);
		number_of_gibbits -= 1;
	}
	snd_play (exploend_wav, sound_volume, 0);
}

Inari

Re: Explosions-Effekte [Aum] [Re: Inari] #281942
07/29/09 15:34
07/29/09 15:34
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Inari, dear friend, why dont you move To Lite-C Programming forum ?
Its "C-Script and WDL", and i see that your questions are about lite-c.


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Explosions-Effekte [Aum] [Re: VeT] #282043
07/30/09 02:16
07/30/09 02:16
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline
User
Ayumi  Offline
User

Joined: Oct 2008
Posts: 681
Germany
Cause it s a Wdl code^^
(my question was changed to this forum too).

Ich schau mal,...wollte mir den Code gerade in
lite c umwandeln^^
In wdl code funtioniert er uebrigens wunderbar,.

Last edited by Ayumi; 07/30/09 02:18.
Re: Explosions-Effekte [Aum] [Re: Ayumi] #282156
07/30/09 14:54
07/30/09 14:54
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
If its WDL code, than, please, write it somewhere in "Gamestudio Forums".
Its "C-Script and WDL - The predecessors to lite-C" forum, here we are talking (well, going to talk smile ) about something like this: http://www.conitec.net/beta/aWINSTART.htm - using WDL-files as configures for lite-c.


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Explosions-Effekte [Aum] [Re: VeT] #282170
07/30/09 16:05
07/30/09 16:05
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Are you sure? I think this forum is ment to talk about scripting in wdl, not only configuring Lite-C with wdl.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: Explosions-Effekte [Aum] [Re: Dark_samurai] #282191
07/30/09 17:31
07/30/09 17:31
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
I thought like this all time smile

Look at the address:
Gamestudio » Forums » Atari lite-C » C-Script and WDL
How C-Script and WDL belong to lite-c in other way, not as configurator? smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Explosions-Effekte [Aum] [Re: VeT] #282304
07/31/09 08:36
07/31/09 08:36
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Yes that's logical, but I can't find any other forum that would fit to C-Script programming. And why should we need a forum for configuring Lite-C with wdl? There are only a few commands for that and I don't think that this is worth an own forum.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: Explosions-Effekte [Aum] [Re: Dark_samurai] #282327
07/31/09 10:29
07/31/09 10:29
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
IMHO VeT thats no quite correct.
From my understanding the "C-Script and WDL" forum is meant for users who still work with C-Script and have questions about it or problems regarding it.
So this topic fits here just well.
But thats only my humble opinion.

@Inari:
Could you provide a small test level including files and the script for the explosion as package that we could download and test?
From the code I cannot see any mistakes there currently.


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