How To Create A Dress Up Game In Flash Using Actionscript

in Game
This is often a simple tutorial that can teach you ways to use the drag and drop system that's common in games such as dress up, tower defense, and any different games where you may want to be dragging objects around the screen.
The first thing you will want to try and do is draw the items that you will be dragging. Draw the article and choose it. Now hit F8 and name it no matter you like. You will want to make sure you choose the button option though. Currently that the article you'll be using is on stage, you'll need to relinquish it an instance name. Click it and offer it the no matter instance name you want. I named mine myItem.
Currently for the coding part. Go into the code of the button and place this in:
on (press) { // when your press the button
startDrag(""); // begin the dragging



} // finish of script

on (

release) { // once you release the mouse button
stopDrag(); // stops the dragging
} //end of script
Currently hit Control+Enter to check your flash and see if it works. You ought to be in a position to drag your object around the screen. If it appears a very little awkward, try changing the frame rate to a a lot of smooth 20 or 25. You'll be able to place this dragging code into as several buttons as you wish. You'll even create all of your objects on separate layers to decide on which objects can seem above or below the others. This can be helpful for dress up games, in that you may wish to have bound objects above alternative ones.
That's it for the drag and drop tutorial. This should have you ever making dress up games in no time. Pretty simple right?
Author Box
mario has 1 articles online


Steve Flores has been writing articles on-line for nearly 2 years now. Not solely can this author target Dress Up Games
You'll be able to also take a look at latest website concerning :
Free Online Games To PlayWhich reviews and lists the best
Free Arcade Games

Add New Comment

How To Create A Dress Up Game In Flash Using Actionscript

Log in or Create Account to post a comment.
     
*
*
Security Code: Captcha Image Change Image
This article was published on 2010/10/26