Page 1 of 1
Help making actor stick!
Posted:
Thu Mar 17, 2011 3:39 am
by Scorpion50o1
ok so i got my gun game
viewtopic.php?f=4&t=9766but since in the comment how can i make the ammo [clip/mag] stick to the gun as if it were put into the gun instead of just moving them seperate :O?
if i didnt explain it very well.... if you put the magazine into the gun i want it to stay with it so u dont have to move them by thereself but together they will move!
please help
i want the clip/mag to stick to it perfectly like a magnet
Re: Help making actor stick!
Posted:
Thu Mar 17, 2011 4:21 am
by Scorpion50o1
lol your not getting what im saying its like when i move the clip/mag to the gun it will stick and not unstick and if i move the clip or gun both will move! i dont want the clip to be able to move like freely
Re: Help making actor stick!
Posted:
Thu Mar 17, 2011 4:26 am
by skydereign
Well you don't seem to get what I'm saying... but from that last explanation it sounds like you don't want the clip or mag to move, even if the gun moves. In that case the question doesn't really make sense, as you simply don't parent it, and perhaps set a variable. But if you meant what I thought you meant, than the solution I presented works.
Essentially if I understood the post you refereed to, you want the actors to stick to the gun, so when you move the gun, they will all move with it... and the method I proposed does just that. If you don't like that method, then I can come up with a different one.
-Edit
For example, something like this? The actor on the left is the gun. Click the actor on the right, and place it on the gun, and it will stick to it, in the way I assume you are asking about.
Re: Help making actor stick!
Posted:
Thu Mar 17, 2011 4:46 am
by Scorpion50o1
ty but i dont want it to stick anywhere but the where the clip goes so how can i do that :O? (sorry for being so picky
)
Re: Help making actor stick!
Posted:
Thu Mar 17, 2011 4:51 am
by skydereign
Well, that only took 50ish seconds so not that big of a deal. To make the actor's only clip to a certain point (not stick) would be easiest if the animations were all the same size. So, make your gun with clips, and separate them while still keeping the same borders. That way, when you attach the actor, you just set their x and y coordinates to be the same, and it will appear in the right spot.
Re: Help making actor stick!
Posted:
Thu Mar 17, 2011 4:58 am
by Scorpion50o1
im confused D: could you go to the chat and explain to me
?
Re: Help making actor stick!
Posted:
Thu Mar 17, 2011 5:31 am
by Scorpion50o1
here is the gun and the clip i want the clip to stick to the red part of the gun ty
?
--no guns for you! lol--
Re: Help making actor stick!
Posted:
Thu Mar 17, 2011 5:43 am
by skydereign
I took off the parenting stuff, as it seems that wasn't your intent, or that you already knew it. Click to move the mag, when it collides with the gun, it will snap to it. The main thing to note are the images.
-Edit
Here it is fused with the other demo...
Re: Help making actor stick!
Posted:
Thu Mar 17, 2011 4:53 pm
by Scorpion50o1
ty +1 point! also can u take the guns download off, i dont want ppl taking my gun ideas
lol