Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, Nymphodora), 1,012 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
lift #439014
03/25/14 14:26
03/25/14 14:26
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
Hi Folks,
I am using a template lift (lift01) and want to set it going from the piece of code below:-

entity* platform1;
entity* levercrater;

function craterlift
{
while(levercrater.tilt<380)
{
levercrater.tilt+=20*time_step;
wait(1);
}
{
* I need a piece of code to go here to work the lift *
}}

action craterlever()
{
levercrater=my;
my.enable_click=on;
my.event=craterlift;
}

I can set Z position, speed etc from template

Can anyone help please? (I have tried the trigger action, but
but don'r understand it enough to make it work - no help in manual)
Kind regards, David david@davidmoreton1.wanadoo.co.uk

Re: lift [Re: DAVIDMORETON] #439016
03/25/14 14:40
03/25/14 14:40
Joined: Mar 2014
Posts: 25
T
Tirti Offline
Newbie
Tirti  Offline
Newbie
T

Joined: Mar 2014
Posts: 25
Hi DAVIDMORETON,

first of all i am an absolute german Newbie ;-)

I am not sure if i understand your Problem right?
The lift dont move up and down or what is you Problem?

In Action you say my.enable_click=on, so you can click on it.
The Event based on the Click is your function craterlift.

More Questions than Awnsers sorry ;-)

Greetings
Tirti

Re: lift [Re: Tirti] #439024
03/25/14 16:06
03/25/14 16:06
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
Hello Tirti - thanks for your reply - and very good English !!
The action triggers the switch - which moves down to the 'on' position - what I need is a bit of code to put in at the position
indicated which will make the lift move. (it is a template lift, lift01) Normally this would activate when the player steps on it, or when it is 'clicked' with the mouse. I want it to activate when the 'switch' in the code closes.
I have tried everything I know (over several days) but no luck.

Re: lift [Re: DAVIDMORETON] #439033
03/25/14 18:21
03/25/14 18:21
Joined: Mar 2014
Posts: 25
T
Tirti Offline
Newbie
Tirti  Offline
Newbie
T

Joined: Mar 2014
Posts: 25
Hi DAVIDMORETON,

so you click the Switch(levercrater) and nothing happens?
You would if the Player stands on Lift and press the Switch the Lift should lift up?

Greetings
Tirti

Re: lift [Re: Tirti] #439037
03/25/14 19:29
03/25/14 19:29
Joined: Apr 2005
Posts: 653
Germany
D
Det Offline
User
Det  Offline
User
D

Joined: Apr 2005
Posts: 653
Germany
Hi
If you need a code for a lift look in the Aum Magazines there are codes for lifts in the Shooter Workshop the lift is working good .


Wissen ist macht.
Nichts wissen macht auch nichts.

A7.86

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