Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Grant, AndrewAMD), 911 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Colission with blockade #315612
03/17/10 14:37
03/17/10 14:37
Joined: Feb 2010
Posts: 6
W
wimpert Offline OP
Newbie
wimpert  Offline OP
Newbie
W

Joined: Feb 2010
Posts: 6
hi guys,

I am almost done with my game.

It is an airplane which is flying in the air.

Now i want the computer to randomly make obstacles, like simple blocks in the air. It needs to be difficult and exciting.

If you collide with the blocks, you need to go back to the main menu.

Does someone has a good idea/script to make this work?

Yours,

Robert

Re: Colission with blockade [Re: wimpert] #315619
03/17/10 16:22
03/17/10 16:22
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Use event_impact/event_entity, ent_create and random (-> Manual).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Colission with blockade [Re: Superku] #315620
03/17/10 16:35
03/17/10 16:35
Joined: Feb 2010
Posts: 6
W
wimpert Offline OP
Newbie
wimpert  Offline OP
Newbie
W

Joined: Feb 2010
Posts: 6
maybe some example script?

Re: Colission with blockade [Re: wimpert] #315649
03/17/10 20:57
03/17/10 20:57
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline
Senior Member
Razoron  Offline
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Snippet from my script:
Code:
wait(-2);
	my.emask|=ENABLE_TRIGGER;
	my.trigger_range=75;
	switch(my.itemtype)
	{
		case ITEM_HOME_ROCKET:
		my.event=event_Ammo_HomeRocket;
		case ITEM_MG:
		my.event=event_Ammo_Mg;
		case ITEM_ROCKET:
		my.event=event_Ammo_Rocket;
		case ITEM_LASER:
		my.event=event_Ammo_Laser;
		case ITEM_PARACHUTE:
		my.event=event_Ammo_Parachute;
	}




Moderated by  HeelX, Spirit 

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