Show and Hide

The show action let’s you show game objects like backgrounds, characters and cgs. The hide action does the contrary, and allows you to hide them.


Backgrounds

Show

    - show background_id: [WITH transition_id]

The backgrounds will always be behind characters and cgs.

Hide

    - hide background_id: [WITH transition_id]

If no transition is specified, default transition is FADE (can be changed). Check what other transitions are available.

Characters

Show

    - show character_id: [look_id] [WITH transition_id] [AT position]
      [flipped: true|false]

The characters will always be on top of the backgrounds and behind cgs. If no look is specified, default look is “normal”. If no position is specified, default position is CENTER. A position can be a coordinate like 400,600 or one of the pre defined positions. The anchor of a character is the center bottom of the sprite (usually the feet), so center position will be center bottom of the screen. Other pre defined positions are:

  • CENTER: Center bottom of the screen.
  • LEFT: 16 of the screen width, bottom.
  • OUTLEFT: -16 of the screen width, bottom. Outside of the screen.
  • RIGHT: 56 of the screen width, bottom.
  • OUTRIGHT: 76 of the screen width, bottom. Outside of the screen.

Hide

    - hide character_id: [WITH transition_id]

If no transition is specified, default transition is CUT (can be changed). Check what other transitions are available.

Show CGS

Show

    - show cgs_id: [WITH transition_id] [AT position]
      [zoom: number]
      [position: coordinate]
      [angle: number]

The cgs will always be on top of characters and cgs.

Hide

    - hide cgs_id: [WITH transition_id]

If no transition is specified, default transition is FADE (can be changed). Check what other transitions are available.

Examples

  - show bedroom_lamp_off:
  - show deuzi: AT CENTER WITH FADE
  - show bedroom_lamp_on: WITH FUSION
  - show jair: AT OUTLEFT
  - show jair: AT LEFT WITH MOVE
  - hide deuzi: WITH FADE