Have any questions?

+44 (20) 3540 6226

hello@appshed.com

Click on Image to call Action

0.0/5 rating (0 votes)

Any Game Object can have events associated with it.

For example, let's set up a "Close Image". When you click it, the game must stop.

Add an Image to your game and select a suitable "close" icon.

close image

The image should look something like this:
(Remember to Move the image to the top of the list so that it appears above other objects)

close image in game+

Add a Pointer Event

add pointer event

Edit the Pointer Event and select the object to associate with this event (in this case close_image).

Also select the required pointer event that will trigger this action (e.g. on_pointerdown)

event properties

 

Now edit the Action for the Pointer Event and select Custom Javascript.

Type in the required command:

app.game.stop()

event action

 

 When you click the Close Image, the game will stop.

 

 

Share this product

appshed name white text 250

Copyright © 2017 AppShed Limited