Fangames > Programming Questions

Spike Triggers in KS Engine?

(1/1)

BaronBlade:
Hi! I've been using the Yuuutu engine for a while and decided to upgrade to GMS with the KS engine. Unfortunately, the way spike triggers work between the two engines is entirely different. I put the following code in my spike, but it activates after I reset instead of when I hit the trigger initially.

--- Code: ---trg=1;
if global.trigger[trg]==1 {
    vspeed=10;
}
--- End code ---
Any help would be appreciated. Thanks!

Kyir:
Just set the creation code in the trigger to trg = number (you know, whichever), and then whatever spike you want to move's creation code to:

trg = samenumber
vs = whatever vertical speed upon trigger
hs = whatever horizontal speed upon trigger

Unless I'm misunderstanding your problem

BaronBlade:
Ah, thanks! That worked perfectly! :atkHappy:

Navigation

[0] Message Index

Go to full version