HitTest, Mouse, PlaySound

 

The purpose is to show how to move away a button when the mouse enters its zone and to zoom another button when the mouse enters its zone.
Just for fun.

I suppose you know well how to create objects, thus I wont insist on.

⇒ animation ⇐

Creating Objects

1 - Set up Movie size 320x240 and background color #009933.
Any Frame Rate.

2 - Create a text NON, a rectangle, then group them.
Name it GroupNon. Target toggled.
Convert to Sprite.

3 - Create a text OUI, a rectangle, then group them.
Name it GroupOui. Target toggled.
Convert to Sprite.

Scripts

In Outline, select the scene, get to Expert Mode. Enter the following script :

Don't forget to import sounds : Content / Import / Sounds.

 


Si vous aimez le site

 

Select a language if you need :


Page chargée en 0.026 sec.

Dernière Modification : Mer 25 Janvier 2017 8:56
Copyright © 1999-2017 Jean-Paul Molina Tous droits réservés.

to Google