Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,672 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,211
İstanbul, Turkey
Quad Offline OP
Senior Expert
Quad  Offline OP
Senior Expert

Joined: Oct 2007
Posts: 5,211
İ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,211
İstanbul, Turkey
Quad Offline OP
Senior Expert
Quad  Offline OP
Senior Expert

Joined: Oct 2007
Posts: 5,211
İ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 | 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