April 26, 2024, 11:58:57 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Forum rules
-
please read before posting, it can save you a lot of time.
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Exchange Actor at runtime
« previous
next »
Pages: [
1
]
Print
Author
Topic: Exchange Actor at runtime (Read 2547 times)
0 Members and 1 Guest are viewing this topic.
smushi
Lurker
Karma: 0
Offline
Posts: 2
Exchange Actor at runtime
«
on:
June 16, 2011, 04:42:00 PM »
Hi, we've been working on our game for a while now and are coming closer to our release date.
I just realized there's still one major problem in one of our prototype's scenes.
During the scene the actor puts on some clothes. We created the needed sprites, but right now I can not figure out how to exchange the actor -.-
Couldn't find help in Search and Documentation.
Can you help me
?
Logged
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: Exchange Actor at runtime
«
Reply #1 on:
June 16, 2011, 04:58:16 PM »
Simply unload the old one and load the new one.
Code: WME Script
Game
.
UnloadObject
(
actor
)
;
actor =
Game
.
LoadActor
(
"path\file.actor"
)
;
Game
.
MainObject
= actor;
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
smushi
Lurker
Karma: 0
Offline
Posts: 2
Re: Exchange Actor at runtime
«
Reply #2 on:
June 16, 2011, 05:56:23 PM »
thank you so much!
Logged
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Exchange Actor at runtime