Epic Gamefroot Update! We’ve rolled out a bunch of awesome new Gamefroot features and fixes! Go to the level editor →
The most recent changes to Gamefroot in version 1.18 are:
- Scripts can now be saved to asset packs
- Animations can now be activated via scripts
- Added the ability to create custom variables in the script editor
- Added the ability to drag to fill an area with terrain
- Hitboxes from animation editor now work in the game engine
- Creating a top-down game starts you off with top-down assets
- Improved the deviantART sta.sh image importing process
- Undo and redo (ctrl+z and ctrl+shift+z)
- Fixed right-click menu on Firefox
- Fixed bug when loading a level would get stuck on the Loading Gamefroot window
- Fixed jetpack floating next to player
Scripts can now be saved to asset packs!
Now you can create powerful interactive items in your games, and then re-use those scripts in all your other games. You can even put your scripts up on the Marketplace for others to share!
You’ll notice that the core pack you start with also has a bunch of scripts in it, so you can figure out how something like the teleporter or story points work.
You can save a script you’ve created by clicking the Save to Pack button on the script in the behaviour palette.
Animations can now be activated by scripts!
Animated items created with the Animation Editor can now have their different sequences activated with scripts.
Once you’ve created your animation with different animation sequences, place it on the stage and then create a script for it. You can use the purple blocks Loop animation and Play animation once (from the Animation tab) by typing the name of the animation sequence in the yellow space to trigger that sequence.
To create a custom variable, open the Script editor and click on the Variables tab. Then click Create New Variable and give it a name, type, and description.
The four types are boolean, number, node, and string.
- A boolean variable is an on/off state, e.g. Visible, or alive, or solid, etc. A boolean is used to determine whether something is true or false, like visibility.
- A number variable can be any number, e.g. 5, or 205, or -405.3, etc. A number variable is used to keep a count of something, like health or bullets.
- A node variable is a pair of x and y coordinates on the level, e.g. 48 and 96, or 500 and 500, etc. A node variable is used to store a location.
- A string variable is sequence of characters that can make a word or sentence, e.g. “Hello! How are you today?”, or “Stop right there, criminal scum!”, or “@#$%!!!” A string variable is used for messages in story points.
You can use custom variables to store your own data in your scripts, instead of having to rely on the existing variables we have by default, such as health, lives, solidness, etc. Creating your own variables is essential for building intermediate to advanced interactive objects.
Drag to fill an area with terrain
Select the Drag to Fill tool, and drag your mouse over an area of your level to fill it with terrain all at once.
And there’s even more! Go check it out in the level editor →
– The Gamefroot Team