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: Different Sprites for the main actor?  (Read 5143 times)

0 Members and 1 Guest are viewing this topic.

Nihil

  • Supporter
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 528
  • Fear me! I'm evil!
    • View Profile
    • Order of Dagon
Different Sprites for the main actor?
« on: December 19, 2003, 10:56:18 AM »

I've just wondered, is it possible to have different sprites for the main actor?
I don't mean the animation sprites, but completely different ones. I couldn't find something about this in the help file.

The reason for this is, that my game will take place in very different regions and cover a time span of approx. 3 months from autumn to deep winter, so I think it would be more realistic (and hygienic of course  :) ) if he would change his clothes from time to time :)

I don't need an in-depth explanation of how it works, a simple Yes or No is enough (though a Yes would be prefered :) )

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 690
    • View Profile
Re:Different Sprites for the main actor?
« Reply #1 on: December 19, 2003, 12:08:20 PM »

I've just wondered, is it possible to have different sprites for the main actor?
I don't mean the animation sprites, but completely different ones. I couldn't find something about this in the help file.

Good question. I think you can't change the definitions from the actor files in the script yet. But it should be no problem to load another actor definition with

actor = Game.LoadActor("actors\mycharacter\chapter3.actor");
Logged
Mooh!

Nihil

  • Supporter
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 528
  • Fear me! I'm evil!
    • View Profile
    • Order of Dagon
Re:Different Sprites for the main actor?
« Reply #2 on: December 19, 2003, 12:29:15 PM »

Well, that sounds easy :)

Is the inventory in any way connected to the actor (I haven't done too much wme-scripting until now, so I don't know ...)

According to the Help the Inventory is a Game-Object, and not an Actor-Object?

PS: Ok, now it IS going in-depth :-)

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Different Sprites for the main actor?
« Reply #3 on: December 19, 2003, 12:55:32 PM »

Currently there's only one global inventory in the game. If you need more of them, you'll have to script it.
Personal inventores are planned, but in your case, the current situation is more appropriate, right? :)
« Last Edit: December 19, 2003, 02:33:13 PM by Mnemonic »
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Nihil

  • Supporter
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 528
  • Fear me! I'm evil!
    • View Profile
    • Order of Dagon
Re:Different Sprites for the main actor?
« Reply #4 on: December 19, 2003, 12:59:33 PM »

Ha! Who needs personal inventories? :)

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 690
    • View Profile
Re:Different Sprites for the main actor?
« Reply #5 on: December 19, 2003, 03:00:52 PM »

Ha! Who needs personal inventories? :)

Actually it's really easy - I'll post you a quite straight solution in the snippet section.
Logged
Mooh!
 

Page created in 0.03 seconds with 19 queries.