Friday, December 17, 2010

Action Script- Getting started- part 2

這是昨天Action Script 課的內容。 我今天想練習,就自己再做一次。
那個作業的目標是整合的按鈕到場景,結果:
-螃蟹向左/右移動;
-螃蟹成長/縮小;
-加/消除Alpha

我順便說說跟Alpha的功能遇到了藝些問題,不過有效。

Here is a small exercise that we've done in class and that I've tried to reproduce at home.

The objective of the course was to integrate the buttons on the scene to:
- move the crab to the left/ right/up/down
- to increase/ decrease its size (with a max/min)
- to add /remove alpha on the crab

I kinda screw up the alpha part, as I didn't succeed to actually add a limit to the (-alpha), but you can still decrease/ increase it.
Anyway, the rest is working...fine.

Voici un petit exercice qu'on a fait en cours d'action script hier. J'ai fait mon possible pour le reproduire.

L'objectif du cours était d'intégrer les boutons sur la scène. Les fonctions suivantes ont donc été codées:
Au clic:
-le crabe se déplace à gauche et à droite/ en haut et en bas
-augmentation/ réduction de sa taille;
-ajouter/ réduire Alpha;

J'ai eu quelques problèmes en essayant d'ajouter une limite pour l'alpha, du coup cette fonctionnalité n'apparait pas. Mais bon, l'essentiel est que le reste fonctionne.





No comments: