Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, VoroneTZ, Quad), 901 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
EVENT_IMPACT #187497
03/08/08 00:30
03/08/08 00:30
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Online OP
Senior Expert
Quad  Online OP
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
im trying to make a sliding platform (just for expirement)

and i have that:

Code:
 function platform_event(){
if(your.skill1==-41){
my.skill1 *= -1;
}
}

action platform(){
my.emask = ENABLE_IMPACT;
my.event = platform_event;
my.skill1 = 1;
while(1){
c_move(me,vector(my.skill1*2,0,0),nullvector,IGNORE_SPRITES|IGNORE_PASSABLE|USE_BOX|IGNORE_PUSH);
wait(1);
}
}

action platform_nokta(){
my.skill1 = -41;
}



as you can see the "platfrom" is sliding thing here, it slides along x axis, and if it hits an entity with skill1 = -41 it starts to move opposite direction.I use "platform_nokta" s here. if platform hits platform_nokta it should start to move opposite direction.

But it's not working. I set the nokta's skill1 to -41 in wed also but it doesnt seem like they re acting as "you" when they got hit by platform.

p.s. when i set my player's skill1 to -41 and touch the platform it works. it only works for player.

using 7.07

Last edited by Quadraxas; 03/08/08 00:30.

3333333333
Re: EVENT_IMPACT [Re: Quad] #187498
03/08/08 06:36
03/08/08 06:36
Joined: Mar 2003
Posts: 4,427
Japan
A
A.Russell Offline
Expert
A.Russell  Offline
Expert
A

Joined: Mar 2003
Posts: 4,427
Japan
I think event_impact is for when another entity moves into collision with your platform. To be sure, you can tell if the event is triggered or not by setting a breakpoint at the beginning of your event function.

Try a different type of event or check if your c_move was able to move your platform and reverse direction if not.

Re: EVENT_IMPACT [Re: A.Russell] #187499
03/08/08 07:32
03/08/08 07:32
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Online OP
Senior Expert
Quad  Online OP
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
then if i edit the event for platform nokta's they should work, im giving it a try now thanks.


edit:yes it worked thanks.

Last edited by Quadraxas; 03/08/08 07:34.

3333333333

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