Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Multiple PC's (Player Chars)  (Read 8205 times)

0 Members and 1 Guest are viewing this topic.

Scarpia

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 77
  • Rich kid trash web designer :-P
    • View Profile
    • junk dot dk
Multiple PC's (Player Chars)
« on: February 20, 2003, 09:41:26 PM »

I wonder, maybe this can already be done, I haven't dug that deep into the engine just yet.

For my unique-style, grand, amazing, fabulous perfect game idea (don't we all have one?  ;)), I will need to switch Player Character in mid-game, from one Actor to another. Just changing all the sprites is not going to work for me; since I need to change player character 30+ times throughout the game (did I mention it was very unique?)

Anyways, is there a way to do this? If not, could it be done? I'm sure other game programmers could use this as well, even on less than unique-style-grand-amazing-fabulous game ideas.  ;D


Scarpia

Logged

Banbury

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 36
  • I'm a llama! Mooh!
    • View Profile
Re:Multiple PC's (Player Chars)
« Reply #1 on: February 21, 2003, 08:05:38 AM »

You don't need a new feature to achieve this. If you look at the sample code, you'll see that all player actions are handled by the 'actor' variable. All you need to do is load a different actor and assign it to the 'actor' variable. All events now use your new actor.

Greetings

Banbury
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Multiple PC's (Player Chars)
« Reply #2 on: February 21, 2003, 09:07:25 AM »

Exactly like Banbury said. There might be a slight problem with the characters' inventories though. If you wanted to preserve individual inventories for each character, you'd have to make a simple script to save/reload the items for a particular character. Although, the inventory handling will probably change in some future release of WME, the actor will be able to have their own "private" inventories.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Scarpia

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 77
  • Rich kid trash web designer :-P
    • View Profile
    • junk dot dk
Re:Multiple PC's (Player Chars)
« Reply #3 on: February 21, 2003, 01:13:00 PM »

WEll, yes I would like to have different inventories for each character, but I could probably script my way through that one. The 'individual inventories' sounds like a great maybe-feature though.


Scarpia
Logged

Uhfgood

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 117
  • No pain, no game!
    • View Profile
    • Indie Flux
Re:Multiple PC's (Player Chars)
« Reply #4 on: February 28, 2003, 07:36:05 PM »

Just to let you know, even if you're game is unique, Lucasarts already did multiple characters in Maniac Mansion 2 : Day of the Tentacle ;-)

I thought how fun that was, so in the future I may make an adventure game that uses multiple characters, because that's cool.

Keith
Logged
--------------------------------------------
Keith Weatherby II
uhfgood -AT- frontier -DOT- com
Games Afoot Software
Indie Flux - Previews, Reviews, News and more!
--------------------------------------------

Scarpia

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 77
  • Rich kid trash web designer :-P
    • View Profile
    • junk dot dk
Re:Multiple PC's (Player Chars)
« Reply #5 on: March 01, 2003, 03:52:50 PM »

Actually, I've recently read about a plot idea that was similar to mine, so even if what I'm planning hasn't been done yet, it isn't entirely unique. Think The Mask meets Little Nicky, and you're almost there.

Scarpia
Logged
 

Page created in 0.037 seconds with 23 queries.