![]() |

| :: - Games :: - Tutorials :: - Sprites :: - Sounds :: - Competition :: - Reviews :: - Projects :: - Main Page |
First off, we will have our ghost controlled by the keyboard. Open the ghost object window and click on the keyboard events drop down, and choose left arrow.
There. Now, even though you don't notice it, the white space at white will change. Only the actions that you have in this white space will function on that keyboard event. For instance, if you add a "create instance" it will only do it when the left key is pressed and no other key UNLESS you add the same thing to the other key presses. Now, enough of that. Drag and drop the red arrows at far right into the white space.
Click on the arrow going straight left and click okay. Speed 8 will do for now. Now, go through and make key presses for up, down, and right using their corresponding arrows to make them move in their named direction. Great! Now our ghost will move when we press the arrow keys! However, he will continue to move even when they key is not being pressed, so select the "no key" keyboard event, and drag the red arrows into the white space, this time clicking the red square in the middle, which means stop. There! When nothing is being pressed, nothing happens. Just like it should be. In our game, the object will be to go through the maze and not hit the walls. Every time we hit the walls, we lose a point. First, did you make your wall a solid? If not, go do it. Now, going back to the ghost object window, click the collision event drop down and choose the wall
|
Official Site - :: Official Forum - ::
Url Redirection provided by ShortUrl.com
|
|