To modify the launcher
class, follow the ensuing steps:
launcherClass.monkey
file. Update
method and add a CreateRocket
call there. The parameters are the mouse coordinates and the X
position of the launcher.Method Update:Int() If KeyHit(triggerKey) And cRockets > 0 Then CreateRocket(MouseX(), MouseY(), Self.x ) cRockets -= 1
We have just activated the functionality that will create a rocket when you hit a trigger key.
18.222.168.163