Added: 3 years ago
From: PivotyPivoty
Views: 6,511
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (33)

Sign In or Sign Up now to post a comment!
  • what version of flash are you using?and if you can give me link to download :D you are awesome!pls replay!

  • burrrrrrrrrrrp

  • protip - Notepad is horrible for tutorials, Dont use it, Either that or have the text written down before you start recording so we don t have to wait for you to type.

  • where is part 1, 2, and 3?

  • hey friend what action to move the character and another thing is that the dynamic action of the text??

  • im making a zombie game and everytime the zombie just comes onto the screen, the HP bar goes down. How can I make it so i only goes down when he comes down? Please help

  • THE FRICKEN HP WONT GO DOWN!

  • 5:45

  • ok umm, about the health bar, can you make it where its the same bar size as the hp grows like, hp=100 and hp=500. its going to be different sizes

  • You basically say that the xscale = _root.hp / 5, that way the hp will be 500, but the width will be 100 and still work fine.

  • lol, after those 6 months since i posted that comment, I found out myself that you can do it with any other widths. example.

    width= IT DOESNT MATTER :D

    hp= 20

    maxhp= 35

    xscale = _root.hp / _root.maxhp

    i luv experimenting :]

  • Lol :P yeah i know it. I did 7 months of experimenting and now found out how to make by far the best inventory system ever on flash. Seriously I have never seen anyone do it.

  • hah. yea? i kinda stop programming, but i think i might start getting back to it. *sigh* I NEED MY PASSION BACK!!

    i had a slight error lol

    xscale = _root.hp / _root.maxhp *width

  • if you want we could try to collab on something. Get aim and fast msg through it? IDK!

  • that would be nice, but im more of a soloist. I told myself that the first game i make will be only by myself sorry. I bet you're a great programmer too.

  • No problem, and thanks. I kinda told myself that too, but then I wanted to start making a few months of tests before I got started. And 7 months tests was taken into making an inventory(A RIDICULOUSLY GOOD ONE). FOR PETES SAKE!

  • how do u make it so at 0 hp u go to the next frame?

  • lol

    if(_root.hp <= 0){

    nextFrame()

    }

  • what if i have game with score and i want it to go to next lvl/frame anfter it reaches certain lvl

  • onClipEvent(enterFrame){

    if(_root.*instance name*<=*the number you want it to go to the next level at*){

    _root.gotoAndStop(*frame number of next level*);

    }

    }

    put on pretty much any movieclip

    PS. where it says *'s dont put the *'s there, just put what the inside text tells you to do, if this helps sub and check out my flash vids!!

  • where do you put that code?

    please help!

  • THANK YOU!!!!

  • mmm...i cant make death screen.i dont now why.

    can somebody help my.

  • umm idk if i can be a help but, after making your death frame put a stop() code on it then, look at your code on whatever is gonna make it go to the death screen such as if(_root.hp <=0){

    gotoAndStop("death") ***or whatever frame it's on***

    }

    hope this is a help

    ***I'm still a newb***

  • please can you give a detailed discription on how to make the enemy move because i cant figure out how to do it

    other than that everything worked. Keep it up

  • how do i make it so it is that if i die it goes to anoth page saying your dead...

  • plz give credit ok?

    put the frame of the deatch message in the ()'s

    onClipEvent(enterFrame){

    this._xscale = _root.hp;

    if(_root.hp < 0){

    _root.hp = 0;

    gotoAndStop();

    }

    }

  • ok mine needs work a little but once u figur it out post again

  • wait it probly works if your not useing MX

  • edit its movie clip by double clicking on your enemy and make motion tweens to make him go up and down

  • 1.) In Health Bar:

    onClipEvent(enterFrame){ this._xscale = _root.hp; if(_root.hp < 0){ _root.hp = 0; }

    }

    2. In Enemy:

    onClipEvent(enterFrame){ if(this.hitTest(_root.char)){ _root.hp -= (random(5)+1); }

    }

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