The Daily Click ::. Forums ::. Klik Coding Help ::. how to attach armor as a second object
 

Post Reply  Post Oekaki 
 

Posted By Message

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
1st August, 2012 at 01/08/2012 12:09:34 -

so basically i want all armor pieces to be different animations in 1 active object. how do i get the object to follow the direction of the characters but remain in the same spot relative to the character. ive tried and it seems when my characters turn it jumps around

 
[Game design makes my brain feel like its gonna explode.]

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
1st August, 2012 at 01/08/2012 13:04:13 -

I'd recommend that you double-check all your Action points and Hot Spots on both the character and the pieces of armour, to make sure they're all consistent.

...Or are you using some other way to center the armour over your characters?

 
n/a

nivram



Registered
  20/07/2006
Points
  171
1st August, 2012 at 01/08/2012 16:39:42 -


Originally Posted by siven
so basically i want all armor pieces to be different animations in 1 active object. how do i get the object to follow the direction of the characters but remain in the same spot relative to the character. ive tried and it seems when my characters turn it jumps around



To heck with that. I would just clone your character and change the colors of the armor and etc. It is much safer and less of a hassle, as it it is easy to change characters based on values.

Marv

 
458 MMF2 & CTF 2.5 examples and games

http://www.castles-of-britain.com/mmf2examples.htm

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
13th August, 2012 at 13/08/2012 14:34:15 -

but that would take sooooo long..

 
[Game design makes my brain feel like its gonna explode.]

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
19th August, 2012 at 19/08/2012 15:36:07 -

I am guessing it should be easy, but I might not fully have understood the question otherwise.

Do what 's-m-r' told you to do, make sure all those action points and hot spots are exactly right.

Do 'attach' the item you should always set the position of the armor relative to the character at (0,0).

To always match the direction you can write code that checks if the player is facing right or left and set the direction of the armor to the same direction. Of course if you'v more directions, just check more or use another piece of code that just always sets the direction of the armor to the direction of the player.

Hope this helps.

 
Image jenswa.neocities.org

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
19th August, 2012 at 19/08/2012 19:38:42 -

Also make sure you're updating the armour's position after the character has moved. Otherwise the screen will update before the armour has moved.

1.Character movement events.
2.Armour position over player.
3.end of events list.

 
.

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
18th September, 2012 at 18/09/2012 00:24:47 -

i think andy might have it nailed, but i cant figure it out right now cuz my computer is down yet again. i think my motherboard is either out or my power supply has died, either way, thanks guys.

 
[Game design makes my brain feel like its gonna explode.]
   

Post Reply



 



Advertisement

Worth A Click