Jump to content


Photo

How to do NPC feet


  • Please log in to reply
4 replies to this topic

#1 Dylan93

Dylan93

    GMC Member

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 27 January 2011 - 02:12 PM

Hello GMC,

Like the title says, in my upcoming engine showcase level I have a complete forest with a town in the middle.
Now the problem is, I want every NPC to be able to have legs/paws etc, currently it works like this: (Which I doubt is efficient)

All NPC's are a object, lets say for example a deer.
The deer itself is a object, having its own sprite and code etc, but for the feet I use a different object that handles the feet animation and speed etc.
Now the problem is that I use this method for every NPC, and there are many of em so its highly inefficient and it raises the number of objects a lot.
In this scene is also a complete village with NPC people, the scene has a day/night system and the shadows and lighting are based upon that.
There is bloom, which including the shadows are drawn on a surface.
The game is topdown for as far that matters.

So can anyone help me out with another method ?

- Dylan

Edited by Dylan93, 27 January 2011 - 02:13 PM.

  • 0

#2 Gibraldi

Gibraldi

    GMC Member

  • New Member
  • 340 posts

Posted 27 January 2011 - 02:15 PM

Have you tried combining the actual sprite and the feet/paws on one sprite and use a strip of sprites to create animations?
  • 0

#3 Dylan93

Dylan93

    GMC Member

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 27 January 2011 - 04:27 PM

Have you tried combining the actual sprite and the feet/paws on one sprite and use a strip of sprites to create animations?


I did try that yes, but it limits options like using the feet multiple times for different objects and I have to edit ALL sprites with their according feet and that would be a lot of work.
  • 0

#4 2d_games

2d_games

    GMC Member

  • GMC Member
  • 1495 posts
  • Version:GM8

Posted 27 January 2011 - 04:34 PM

I don't understand why your using different objects for feet. Could you combine the sprites to get one whole walking animation? If you need something like facial expressions or something, use them as a separate sprite to draw over a characters body.
  • 0

#5 Gibraldi

Gibraldi

    GMC Member

  • New Member
  • 340 posts

Posted 27 January 2011 - 04:41 PM

I did try that yes, but it limits options like using the feet multiple times for different objects and I have to edit ALL sprites with their according feet and that would be a lot of work


Personally I don't see limitations, and it is a lot more efficient. It's either a lot of sprites or a lot of objects I fear
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users