Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,238 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
any help to make a elevator? #410918
11/10/12 20:08
11/10/12 20:08
Joined: Apr 2012
Posts: 106
G
GaniX Offline OP
Member
GaniX  Offline OP
Member
G

Joined: Apr 2012
Posts: 106
Hi, I wanted to know if anyone can help me make a simple elevator without for it is using skills
i did this.


Code:
action ascensor()
{
my.emask =ENABLE_IMPACT;
proc_mode=PROC_EARLY;
var senal=0;
var senal_l=1;
	
//if(event_type == EVENT_IMPACT)if i use this way, the elevstor is not move
//if(you==player)
 senal=1;
var alt=0;
while(1){
	if (senal==1){
if (senal_l==1){  move_vec[2] += alt; my.z=alt *time_step;alt=alt+1;}						
				if (alt>=10)
						senal_l=0;
				if (senal_l==0){move_vec[2] += alt;my.z=alt *time_step;alt=alt-1;}
				if(alt<=-100)
						senal_l=1;											
						}
 	wait(1);


move_vec2 is the player.z
the problem is the next:
the player can walk around the level without any problem.But when the player is on the elevator and Elvador is go up . The camera begins to flash. however when elevator is go down and the player stay on the elevator the camera does not do this.
http://www.mediafire.com/?h50f2e3ps318ec8 link for download the program if you like.
i appreciate any help

Re: any help to make a elevator? [Re: GaniX] #410937
11/10/12 22:42
11/10/12 22:42
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen


Always learn from history, to be sure you make the same mistakes again...
Re: any help to make a elevator? [Re: Uhrwerk] #410938
11/10/12 23:29
11/10/12 23:29
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Never read bader code lol.
But what to say, I started the same way.
Try making a working gravity/movement code, then an elevator shouldnt be a problem.

Re: any help to make a elevator? [Re: Ch40zzC0d3r] #410941
11/10/12 23:53
11/10/12 23:53
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
visit my place in the workshops you find a fully working elevator laugh the yoshi adventure workshops or the basic one


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain

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