Knowledge Library - welcome to the world of knowledge!!

Discover platform and content tutorials, as well as other useful tips to help you utilize your curriculum.

Submitted by STEM Fuse Support on

Debugging Tips: Fruit Snake

Fruit Snake is a classic, single player game where the player eats fruit to gain points while avoiding collisions with the walls and itself. Fruit snake is built using pin behaviors, variables, and collisions. This is a fun, easy to build game. Continue reading for some common errors to avoid.

 

This is list consists of common issues that may occur when building the game. STEM Fuse does not debug individual game projects - that's the developer's job (you!). With any given game project, there could be infinite reasons why your game isn't the same. That's okay! Focus on the functionality of the game and rework the steps of the BUILD lesson level!

 

Background

If students are unable to work with the background layer, check to be sure it is not locked. Look at the layers bar and check that the lock icon is unlocked. Encourage students to lock it back up again when they are done so they do not accidentally move things around on their background.

 

fruit-snake-behavior-layer
Note the layer order in the Layers bar.

 

Events & Sub-Events

In this build project, there are many sub-events and sub-events of those events. Students need to watch closely using the guide lines provided by Construct to be sure the event is placed correctly. Watch the video for tips on how to move events.

 

Start Screen

If the game is not starting when the spacebar is pressed, check that the esStart event sheet has been assigned to the Start layout. Look for the event name in the properties section on the left side of the screen.

 

fruit-snake-start-screen-events
Note the Event Sheet tied to the Start Layout.

 

Image Points

The body pieces are not attaching correctly. In this game, students use two image points. In order for the Body to attach at both the front and the back, their needs to be two image points assigned to the one object. Check the image point by double clicking on the body Sprite to open the image editor. Then, click on the origin point icon. When the pop-up box appears there should be an image point 0 and 1.

 

fruit-snake-body-image-points
Note the placement of the Image Points on the Body object.

 

Conclusion

Have fun building your Fruit Snake game. Debugging can be extremely challenging - which is AWESOME! Every time you debug an issue in your project, you're becoming that much better of a developer. Keep on debugging and best of luck in your game!

Library Category
Library Tags