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()*NumberOfFrames; selectedframe=Math.round(selectedframe) Enemy.gotoAndPlay(frames[selectedframe])
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
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?
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 1 year ago
@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()*NumberOfFrames; selectedframe=Math.round(selectedframe) Enemy.gotoAndPlay(frames[selectedframe])
I hope this helps :D.
If you have any question leave it to my channel.
ANDREIII500 1 year ago
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
manattan342 1 year ago
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
manattan342 1 year ago
thanks for this tut. its very helpful!
UBERMAN7764 2 years ago
put the codes in the description
it will be better
clayerox5 2 years ago
thanks man!
that is very helpful especially in 3d games.
evermanito 2 years ago
how would it work in 3d games??
UBERMAN7764 2 years ago
it wouldn't, lol
tofoogi 2 years ago
Man this is a good tutorial :D
Thanks
manubudaes 2 years ago
Does anybody know how to make the camera follow the mouse instead of an object?
CheatDude27 2 years ago
change
ux = _root.player._x;
uy = _root.player._y;
into
ux = mouse._x;
uy = mouse._y;
see if that works it did for me
gamemak0r 2 years ago
change the ux and uy to:
ux = _root._xmouse;
uy = _root._ymouse;
apv93 2 years ago
to make the camera follow the mouse
just replace
ux=_root.char._x
ux=_root.char._x
with
ux=_root._xmouse
ux=_root._ymouse
HemVed 2 years ago
Hey man! nice stuff!
Zwickel 3 years ago
Can someone just copy and paste the code into comments
Ashuza 3 years ago
thanks for teach pbj746!!!!!
linerider4233 3 years ago
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.
blockdrogon 3 years ago
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
blockdrogon 3 years ago
cool tut, nice one!
fadermusprime 3 years ago
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?
blockdrogon 3 years ago
i think so i just dont no how
djdawkins36 3 years ago
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!
Jubby7 3 years ago
Cool AS. Instead of having a camera, i attached it to the enemy to make it rotate and look at me.
smellycheeseman1 4 years ago
Haha cool.
Mine worked.
gr8 instructions!
TheBlueThread 4 years ago
Probably a tad confusing for people who never did any programming before, but useful enough for me, thanks :D
Delyside 4 years ago
nice work
jsaic 4 years ago