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: Changescene animation  (Read 4017 times)

0 Members and 1 Guest are viewing this topic.

rollo

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 23
    • View Profile
Changescene animation
« on: March 26, 2013, 12:23:57 PM »

Hi. I have created a scene where the player drops a bomb and is set to explode after so long. My question is 2 part. Are there any examples of timer functions and if so where and secondly, I have created a scene in 3dsmax of an exploding barrel. How do I incorporate this into a new scene. In which I mean in what format. From what I can see there are 2 options. Avi or image sequence. Are they the only options. Thanks
Logged

keybone

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 112
    • View Profile
    • Lucine
Re: Changescene animation
« Reply #1 on: March 27, 2013, 03:30:05 PM »

hi,
for ani use png sequence is best if the animation is only for barrel..

i think for the timer u can use "sleep" on entity,

cya :)
« Last Edit: March 27, 2013, 06:02:52 PM by keybone »
Logged
Lucine Company http://www.lucine.it/
Tales of Lucine: The Realm of Hobdark http://www.lucine.it/TalesOfLucine

rollo

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 23
    • View Profile
Re: Changescene animation
« Reply #2 on: March 27, 2013, 04:47:12 PM »

cheers keybone. will check it out.
Logged

anarchist

  • Regular poster
  • ***
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 212
    • View Profile
Re: Changescene animation
« Reply #3 on: March 27, 2013, 06:27:49 PM »

The WME book covers this quite well: http://res.dead-code.org/doku.php/wmebook:ch3
Search for the line "Let’s move on to the last part of this chapter, which will cover the daemon issue." and start reading from there. Interestingly, the example that metamorphium used is a bomb :)

In a few words, in WME you can attach/detach any script you want at any time. Attaching a script will execute any code inside (be it event handlers, functions/procedures or just simple code). In the code inside you will have a loop that will exit when the time comes for the bomb to explode. Right after the loop (which must contain the Sleep() command so your game is not frozen) you will place the code that explodes the bomb (or executes any timed event you wish).
Logged

rollo

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 23
    • View Profile
Re: Changescene animation
« Reply #4 on: March 28, 2013, 07:08:19 PM »

anarchist. Thanks for reply. So there is no command for a timer so just use a for loop? Will check out that link. Thx
Logged
 

Page created in 0.192 seconds with 23 queries.