Ruby Tutorial 4 - Class System Script Request Part1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,096
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 25, 2011

This episode we are actually filling a script request! In this tutorial we cover how to alias methods. How to define modules and call them and generally how to configure your script to not conflict with others while adding the ability required for the script you are doing.

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (gubid)

  • Just a bit curious, if you plan on using numbers as the key, why not just use an Array?

    No offense, just seeing if there is a specific reason or a speed difference or whatnot.

  • @GameGuysProjects

    Being that we dont know that all weapons should change the class we cannot assume that the index will match the order in which you enter the 'weapons'. Allowing you the ability to have a 'key' to the results is a much more clean method for reading the code, but it is less efficient when compared to normal array. Management wise, it is better to follow as I did, but if you can do it otherwise, then great. Saving a milisecond is not a huge concern to me.

  • @gubid Ah yes thank you. I would've simply checked to see if the index existed or not and went from there. Thanks for the reply.

  • @GameGuysProjects

    You would have had to fill the index on creation or something to ensure that every weapon had a place holder and that the index associated could relate back via ID.

    Thanks for commenting!

see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • PLEASE PLEASE PLEASE make a side battle system (basic if possible) with changes to the hp bars and ext. would make me a happy pappy

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more