Module: MSK::Actions::Speed

Included in:
MSK::ActionDSL
Defined in:
lib/project/actions/speed.rb

Instance Method Summary collapse

Instance Method Details

#speed_by(speed, duration = 0.25) ⇒ Object



3
4
5
# File 'lib/project/actions/speed.rb', line 3

def speed_by(speed, duration=0.25)
  SKAction.speedBy(speed, duration: duration)
end

#speed_to(speed, duration = 0.25) ⇒ Object



7
8
9
# File 'lib/project/actions/speed.rb', line 7

def speed_to(speed, duration=0.25)
  SKAction.speedTo(speed, duration: duration)
end