|
#1
|
|||
|
Not Ranked
:
0 score
Hey guys,
I am not a huge flash maniac and still use AS2 these days. Now I want to learn to use AS3 but feel that it is quite a difference with the easy-style coding of AS2. Do you guys have any good tutorials or articles to get me started? |
||
|
#2
|
|||
|
Not Ranked
:
0 score
Im nt too sure, but i can tell u hw to make a dress up game using AS3.
This is a simple tutorial that will teach you how to use the drag and drop system that is common in games such as dress up, tower defense, and any other games where you will need to be dragging objects around the screen. The first thing you'll want to do is draw the things that you will be dragging. Draw the object and select it. Now hit F8 and name it whatever you like. You'll want to be sure you select the button option though. Now that the object you will be using is on stage, you'll want to give it an instance name. Click it and give it the whatever instance name you want. I named mine myItem. Now for the coding part. Go into the code of the button and put this in: on (press) { // when your press the button startDrag(""); // start the dragging } // end of script on (release) { // when you release the mouse button stopDrag(); // stops the dragging } //end of script Now hit Control+Enter to test your flash and see if it works. You should be able to drag your object around the screen. If it seems a little awkward, try changing the frame rate to a more smooth 20 or 25. You can put this dragging code into as many buttons as you wish. You can even make all your objects on separate layers to choose which objects will appear above or below the others. This is useful for dress up games, in which you will want to have certain objects above other ones. That's it for the drag and drop tutorial. This should have you making dress up games in no time. Pretty simple right? |
||
|
#3
|
|||
|
Not Ranked
:
0 score
Nice tips guys
Thanks |
||
|
#4
|
|||
|
Not Ranked
:
0 score
Ya sure. no prob. if there is anythng more that you require then let me knw.
|
||
|
#5
|
||||
|
Not Ranked
:
0 score
Quote:
|
|||
![]() |
| Bookmarks |
| Tags |
| as2, as3, flash |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|