Have any questions?

+44 (20) 3540 6226

hello@appshed.com

Objects (Tools)

Game Config

StartGame2
Game Config is the main object in every AppShed game. Every game must start with a Game Config object.

 

You edit some of the properties for the Game Config. This will change the overall layout and behaviour of your game e.g.

  • width and height of the game
  • gravity
  • debugging

All of these settings are optional. For most AppShed games you don't need to change anything.

 

Group

icon group
The "Group" object allows you to group sprites, images etc together. 

 

The benefits of groups are:

  • Objects that have similar behaviours are grouped together.
  • You can define events (such as a "Collide") for a whole group, rather than individual objects.
  • This means it is much quicker and easier to get repetitive tasks done.

 

How to add a Group object

  •  Click on the "Group" object.
    (It's in the purple square Game Setup collection)
  • An Object Name will be automatically assigned.
    You can change the name if you want.
    Object names must not have spaces or special characters, just alphanumeric and underscore or hyphens.
  • Click "Save"

 

How to use a Group object

  • When the group is created, the Action is called.
    Typically the Action contains JavaScript. 
  • The JavaScript can contain any valid code, including standard JavaScript functions, jQuery, app.js and phaser.io functions.
  • If the JavaScript code references any other objects (such as images or sprites), then you must ensure that the Group object is created AFTER those objects.
  • You can rearrange objects using the Move feature in AppShed. Simply drag the Group object below any sprites etc that are referenced in the code.

 

GET IN TOUCH

 

   Get In Touch   

appshed name white text 250

Copyright © 2022 AppShed Limited

AppShed Support
Customer Support

We are online and available to help teachers/educators using AppShed. How can we help you today?

Chat, call or email support@appshed.com