Flash Mini Project – Interactive Game Design
The task is to design a game in Flash, enabling the users to use the elements which will be made available, and create an own story. User should be able to view the entire story after creation.
My understanding to create this project is that, user should be able to drag and drop any element and place them anywhere on the scene. Later, when satisfied, user should be able to save his movements and watch it again as an animation.
The very first part of the project would be to create some elements, which, user should be able to drag and move around the stage. This is possible by using the following code:
on(press)
{
this.startDrag();
}
on(release)
{
this.stopDrag();
}
This code allows to drag an object on mouse press and stop when released. Next part is to record the initial as well as the later placement of the element which is possible by storing the X & Y co-ordinates of the object.
Store..!! but where..?? According to the example shown by David Downes, these co-ordinates can be stored in an array. Sounds good…!! I tried recreating the example and somehow after 2-3 trials………. Success!
Now I am confident that I can start working on the project. Start… but from where? Better option is to create a working sample model of the concept and then enhance the visual design later on.
No comments:
Post a Comment