Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

SDK Call script event command

Using the call script event command, how do you enable and disable sdk scripts?
I want to disable a HUD, then enable it later, using the call script command with the events.
Thanks.
 

OS

Sponsor

I believe it's SDK.enable(script_name) and SDK.disable(script_name)

where script_name is the name of the script being enabled/disabled. Remember to put script_name inside quotes ('' or ""). Peace out!

~Broken
 
Make a method in the HUD that makes it appear and disappear. The thing that you want to be made concerns only in the HUD´s sprites visibility from what i could see. Maybe you should post the HUD code here, and we can help more.

That misconception is old... *blames SDK xD*
 
At the start of the cutscene use this in the Call Script command:
Code:
window.visible = false
return true

then use in the final this:
Code:
window.visible = true[CODE]

be sure to change "window" with the window real name.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top