Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: blob shadow  (Read 4267 times)

0 Members and 1 Guest are viewing this topic.

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
blob shadow
« on: February 02, 2007, 01:12:43 AM »

I'm just curious right now as I'm just going through the documentation, but I was wondering how one would do the old fashion blob shadow with a character? 
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: blob shadow
« Reply #1 on: February 02, 2007, 02:00:33 PM »

It depends whether we're talking about 3D character or 2D characters. For 3D characters there's direct support for "blob" shadows, lookup "simple shadows" in the documentation.
For 2D characters either make the shadow part of your sprites, or add the shadow image as a subframe in SpriteEdit.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
Re: blob shadow
« Reply #2 on: February 02, 2007, 07:32:19 PM »

Quote
For 2D characters either make the shadow part of your sprites, or add the shadow image as a subframe in SpriteEdit.

That sounds like quite a bit of work either way. I would need to attach subframes to every frame?  Is there some way to do it all at once?  Is there some way to script a sprite that follows the character movement and get's drawn first?  That would be the easiest.
« Last Edit: February 02, 2007, 07:54:22 PM by fireside »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: blob shadow
« Reply #3 on: February 03, 2007, 05:30:39 PM »

Currently not, it will be possible in the next release.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
Re: blob shadow
« Reply #4 on: February 03, 2007, 07:30:50 PM »

Quote
Currently not, it will be possible in the next release.

O.K.
Logged

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
Re: blob shadow
« Reply #5 on: February 12, 2007, 06:16:38 PM »

Now, with the updated version.  What would I do to attachObject() to say the Molly character to have a blob shadow?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: blob shadow
« Reply #6 on: February 12, 2007, 06:21:47 PM »

1) Create a sprite containing the blob image, preferrably with the hotspot in the middle.
2) Create a new entity file, which will reference the shadow sprite:
Code: [Select]
ENTITY
{
  SPRITE = "path\shadow.sprite"
}
3) In actor's script call something like:
Code: [Select]
this.AddAttachment("path\shadow.entity", true);
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
Re: blob shadow
« Reply #7 on: February 12, 2007, 06:48:27 PM »

Thanks. 
Logged
 

Page created in 0.224 seconds with 23 queries.