Added: 4 years ago
From: pbj746
Views: 5,189
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (27)

Sign In or Sign Up now to post a comment!
  • hey guys, so im making a sniper game..and i was wondering what i need to do to make my enemies and stuff move...like i can get em to die and all but how would i get them to run around before i shoot them??

  • @YoshiJumper Give them an animation (eventually, for more animations, make more animations and a vector that remember the frame of the animations and a Math.random() that chooses randomly one of the animations in example: NumberOfFrames =3 frames[1]=1; frames[2]=11; frames[3]=21; selectedframe=Math.random()*Nu­mberOfFrames; selectedframe=Math.round(selec­tedframe) Enemy.gotoAndPlay(frames[selec­tedframe])

    I hope this helps :D.

    If you have any question leave it to my channel.

  • question, i like your video i was wondering if u can help me with a question

    i came up with an idea lets say there are two pc's ,in pc 1 there are three box's that are out putting letter from a-z

    box=f

    box=r

    box=w

    the next set of boxs

    box=h

    box=l

    box=x

  • these are random generated letter that are place in the box,s box 1 a-z

    box 2 a-z box-3 a-z

    is it possible to see what pc 1 is out puting then take that info and manually in put it into pc 2 then could pc 2 know where pc 1 is going and what pc 1s next out put would be before it comes out

  • thanks for this tut. its very helpful!

  • put the codes in the description

    it will be better

  • thanks man!

    that is very helpful especially in 3d games.

  • how would it work in 3d games??

  • it wouldn't, lol

  • Man this is a good tutorial :D

    Thanks

  • Does anybody know how to make the camera follow the mouse instead of an object?

  • change

    ux = _root.player._x;

    uy = _root.player._y;

    into

    ux = mouse._x;

    uy = mouse._y;

    see if that works it did for me

  • change the ux and uy to:

    ux = _root._xmouse;

    uy = _root._ymouse;

  • to make the camera follow the mouse

    just replace

    ux=_root.char._x

    ux=_root.char._x

    with

    ux=_root._xmouse

    ux=_root._ymouse

  • Hey man! nice stuff!

  • Can someone just copy and paste the code into comments

  • thanks for teach pbj746!!!!!

  • oh srry for never replying, but I already figured that out LONG AGO, but now I'm trying to figure out smartfox server & papervision3d.

    I already figured out about 95% to 97% of how to make a full 2d single player game XD.

  • Oh, srry for making another comment for this, but even though I said I can make a 2d single player game already, I haven't even bothered trying yet

  • cool tut, nice one!

  • Is it possible to use this actionscript to make it so that my hand moves w/e direction my mouse is pointing. And I DON'T mean it goes where my mouse goes. I'm talking like, an aiming thing kinda. I mean that my hand moves around w/e direction my mouse does. But it stays within a certain distance of my character. Any one who has played a Thing Thing flash game from the Thing Thing flash game series will know what I'm really asking. I got another question. How do I equip weapons to my character?

  • i think so i just dont no how

  • my guess would be...

    -Point the camera at mouse x & y

    -use the camera but make a hand, change the pivot point to the arm base with the freeform tool

    -for the weapons, make them a movieclip with the differant weapons, and put that in the "camera" or "arm" movieclip

    hope I helped!

  • Cool AS. Instead of having a camera, i attached it to the enemy to make it rotate and look at me.

  • Haha cool.

    Mine worked.

    gr8 instructions!

  • Probably a tad confusing for people who never did any programming before, but useful enough for me, thanks :D

  • nice work

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