Added: 7 months ago
From: willyg302
Views: 1,357
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (7)

Sign In or Sign Up now to post a comment!
  • but how do I tell HUD that takes the player what weapon or how many bullets you have left? Sorry if already in the video, because my English is very bad.

  • @diajuegos sorry, that wasn't in the video. to get current weapon, do something like "local UTWeapon W; W = UTWeapon(PawnOwner.Weapon);" then for bullets, set a flash text field to W.AmmoCount. To get the name of the weapon, do something like "string weapname = W.GetHumanReadableName();"

  • @willyg302 ok, thanks

  • Thanks for the nice tutorial! But you didn't include how to make a wrapper object(to bob the entire HUD) in Flash, which I couldn't figure out. Grouping just makes everything one object, so how can I go about doing this?

  • @ShadowFoxGames wow you're right...sorry bout that :P a wrapper is just a series of nested symbols. so make one of your graphical elements a symbol, then "Edit in Place" and add all the other parts of the HUD as separate layers within this symbol. then when you exit Edit Mode, you can give the parent symbol an instance of "wrapper". hope that helps!

  • @willyg302 Oh, alright cool, so basically putting everything into an object to act as the scene instead of the scene?

  • @ShadowFoxGames exactly. it has to be that way because you can't reference the actual .swf scene to do things like change the movie's position or rotation.

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