這是昨天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.
Some uninteresting posts about the life of a Game Designer in Taiwan, about Game&Level Design, animation and video-games in general...
Friday, December 17, 2010
Tuesday, December 14, 2010
Action Script- Let's start with the basics...
我上個禮拜開始ActionScript的課。我們在巨匠學很簡單AS3的功能。只有15個小時,就課的內容不多。我自從要自己學,自己練習。下面是第一個“挑戰”。因為有很多很多功能我還沒有學的,我在網路找資訊(tutorial /forums)。真很辛苦。。。但是很有興趣!
I finally started my first AS3 courses last week. So far we've been through few basics functionalities (how to make a play button work, to code a drag and drop function, etc. Within the few hours of class we probably won't be able to go very far, but it's actually good to dive into something you don't know at all, learn some stuffs and then find out the rest by yourself. Especially with a soft such as AS3, with all the tools (script assistant/code snippets, etc.) designed to help programming newbies such as me.
As from now, I'll learn by myself and try to complete a small challenge (or few, who knows), every week and post the result right here.
The following .swf is the result of my first challenge (thanks Arnaud), which was the following:
- making the first square (purple) move, only by code;
-click at any moment on the square, make it disappear, and another square (red) appears moving to the right...
It looks like nothing and it's only few lines of codes but it's a lot for someone who knew absolutely nothing about programming. And I still don't...
Subscribe to:
Posts (Atom)