Author Topic: Spike Triggers in KS Engine?  (Read 1415 times)

BaronBlade

  • Spike Dodger
  • Posts: 140
  • bees?
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 43.0.2357.134 Chrome 43.0.2357.134
    • View Profile
  • Playstyle: Keyboard
Spike Triggers in KS Engine?
« on: August 22, 2015, 01:26:49 PM »
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: [Select]
trg=1;
if global.trigger[trg]==1 {
    vspeed=10;
}
Any help would be appreciated. Thanks!
bean!

Kyir

  • The Kid
  • Posts: 293
  • Normal Guy
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 44.0.2403.157 Chrome 44.0.2403.157
    • View Profile
  • Playstyle: Keyboard
Re: Spike Triggers in KS Engine?
« Reply #1 on: August 22, 2015, 05:52:05 PM »
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

  • Spike Dodger
  • Posts: 140
  • bees?
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 43.0.2357.134 Chrome 43.0.2357.134
    • View Profile
  • Playstyle: Keyboard
Re: Spike Triggers in KS Engine?
« Reply #2 on: August 22, 2015, 07:18:18 PM »
Ah, thanks! That worked perfectly! :atkHappy:
bean!