![]() So let's first of all, create a condition “User presses Space bar” create a Bsoldier1 and then give him a random starting position in the frame.Ĭlick on the Bsoldier1 in the Create Object dialog and select 0,0 position on Layer 1.Ĭlick OK. At the same time, we will create the enemy his own unique health bar which will stay with him where-ever he goes. Let's imagine when we press Spacebar, we create an enemy and position him randomly on the screen. Once you are in the event editor, we need to create some simple events. This is where we now jump into the Event Editor and make the magic happen. So if you run your application now, you will see absolutely nothing happens, not even a single enemy on the screen. We have our enemy character, our health bar and the correct properties and values setup. Let's also give our enemy some movement, we will assign the Bouncing Ball Movement with a speed of 15. ![]() ![]() Click on the Bsoldier1 object, in its properties click on the Alterable Value tab and click 'New' under Alterable Values, when it inserts Alterable Value A, double-click on the label 'Alterable Value A' and rename it to 'health'. This is going to be the 'health' value of the enemy. We need to give our Bsoldier1 object a new alterable value. Now, change the TYPE of the counter object to Horizontal Bar, Click on the Color tab and select Green. Once you have inserted a counter object, you need to also uncheck 'Create At Start' for the properties of the counter object too. Once this is done, click on the File Menu (Insert > Insert New Object) and let's insert a counter object. First of all, we need to uncheck 'Create At Start' as with Parent-Child objects, we need to manually create them via the event editor. Now, click on the Bsoldier 1 as we have to change some properties of this object. You should now see the soldier inside our frame like so Locate the 'Bsoldier 1' object inside Local Library > Games > Army.ĭrag the 'Bsoldier 1' anywhere onto the playarea. So go ahead and create a new application. First off, we need to setup our playarea.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |