hey, does anyone have any idea how to pin a sword to an active object's hand?? so that when the hero walks, the sword comes along with him, fixed on his hand. i know it can be done if all the hotspots are set to the hand but cant it be done using action points? is there some other method as well?? any help will be most appreciated as always.
I made a snake, made out of multiple objects. Each had an action point on one end, and a hotspot on the other. The hotspots would attach the action points. This allowed me to make the snake flexible and have all kinds of dynamic movements.
another good method is to have the actual controllable active to be invisible, then you can build your character around that without any annoying lag. this way you can have seperate helmets, armour, arms, legs, feet etc and they will fit seamlessly by just using the "always set x/y to...."
Peblo Custom ratings must be 50 characters or less
6th November, 2007 at 23:37:42 -
Originally Posted by Ricky Garces I made a snake, made out of multiple objects. Each had an action point on one end, and a hotspot on the other. The hotspots would attach the action points. This allowed me to make the snake flexible and have all kinds of dynamic movements.
That's a great idea! I guess there are solutions to absolute math.
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
yeah, i thought it would be something like that but when i put xactionpoint("active1"), it gives me a syntax error. also, when i use the 'retrieve from an object' command, i dont get any mention of hotspot or actionpoint when i rightclick the object. only positions such as xcoordinate, ycoordinate, rightedge, etc.
Use the "Set position to X/Y" command, which prompts you to pick a position/object in the level editor. Then, when you select your object, click on the options/advanced button, and select "According to Action Point". This will work for TGF and MMF1.
However, you will run into extreme problems if you want to have more then 1 instance of this object attached to another object. For example, if you want to have an enemy who carries a seperate gun object. You can find some workarounds with extensions like the EE's mother/child object, but the best way to go about doing this is having each character have a unique value as an index, and running a fastloop which sorts through all the index's and sets each set of gun/character to the right position.