RPG Part 4

3

Index

Attached Files

The following files have been attached to this tutorial:

.capx

Stats

4,114 visits, 8,006 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 3 Dec, 2015. Last updated 19 Feb, 2019

Also create Function “Bullet Timer”

That’s our function done if you RUN it should work fine if not please make sure you typed in code correctly. I have Included CAPX check it with that.

Now remember we created Sword, Knife, Health, No Ammo, Empty in part 3 well we have to implement that in our code. What No Ammo, Empty spr_Boxes does?

Please click on our spr_player and add another Instance variable Name it

Player_State and text NA (Not Attacking)

Now all you do is add 2 lines in our Knife Attack code should look like below

Now open your Hudbar Events and create Group name it Hudbar 2 and then add these lines below:

For test RUN change your num_Ammo to say 20 and test it out, see what is happening in Hudbar. It should bring E spr_Boxes.

Now before we go any further let’s add text box for our num_Ammo to say num_Ammo equal to Zero.

Create textbox name it txtAmmo.

Place this text box on HUD layer where middle spr_Boxes is

  • 0 Comments

Want to leave a comment? Login or Register an account!