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
4 registered members (AndrewAMD, Baklazhan, Ayumi, Hanky27), 1,387 guests, and 2 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
Page 2 of 2 1 2
Re: Last lifesigns of IntenseX [Re: ozziedave] #408490
10/02/12 11:20
10/02/12 11:20
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Online OP
Expert
alibaba  Online OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
If you do this, it would be valid for all exits.
So i would suggest, that you write a custom action.
Example:

Code:
var KeyFound=0;

action my_LevelExit()
{
	set(my,PASSABLE | INVISIBLE);
	while (plBiped01_Entity==NULL) wait(1);
	while (1)
	{
		if (plBiped01_Entity!=NULL)
			if (vec_dist(plBiped01_Entity.x,my.x)<=my.skill1&&KeyFound)
			{
					ix_LevelChangeRequest=my.skill2;
				
				ent_remove(me);
				return;
			}
		
		wait(5);
	}
}



In this action the door waits for you until you are in range (skill1) and have the key. And then changes the level (skill2 is the ID of the level starting with 0 .. numbers of levels).


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Last lifesigns of IntenseX [Re: alibaba] #408587
10/04/12 05:39
10/04/12 05:39
Joined: Mar 2006
Posts: 59
O
ozziedave Offline
Junior Member
ozziedave  Offline
Junior Member
O

Joined: Mar 2006
Posts: 59
Many thanks Alibaba for your prompt reply and helpful answer.

Is it possible to have a Global Variable that can transcend
many Lite C files. You know the files you add to your
Main.c script like:

#include <IntenseX.h>
#include <acknex.h>
#include <default.c>
#include <DG_Various.c>
#include <earthball_2.

Many Thanks
Ozzie

Re: Last lifesigns of IntenseX [Re: ozziedave] #408611
10/04/12 14:23
10/04/12 14:23
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Online OP
Expert
alibaba  Online OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Just define all veriables you need before you include the scripts, but after you included acknex.h laugh


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Page 2 of 2 1 2

Moderated by  aztec, Blink, HeelX 

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