Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Walking on water  (Read 2886 times)

0 Members and 1 Guest are viewing this topic.

The Man

  • Occasional poster
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 67
    • View Profile
Walking on water
« on: March 24, 2007, 02:45:17 PM »

Hi...i go straight to the point...
In my scene there's a puddle.When the main character walks above it,the puddle should animate.I think i should create a new region,and when the character reaches that region the puddle should animate..something like that...but i'm not quite sure of the way i have to do that,or how the region script should look like...
If somebody could help,I'd be very very grateful!
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Walking on water
« Reply #1 on: March 24, 2007, 02:49:47 PM »

well, the principle is really easy. The realization (gfx) is imo not that easy because of the realistic outcome.

Anyway -> create a region (not region entity!) and attach a script to it. The region should encompass the puddle.

Then use

on "ActorEntry"
{
}

and

on "ActorLeave"
{
}

in the attached script to track down when the player is inside and when he stepped out.

Hope that this'll get you started.

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Walking on water
« Reply #2 on: March 24, 2007, 03:10:06 PM »

Project Joe demo uses something like this. It utilizes the events triggered by animation frames, and every time the foot hits the water, it creates a dynamic entity with a splash animation. Similar to the surface dependant footsteps, but a little more complex.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

The Man

  • Occasional poster
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 67
    • View Profile
Re: Walking on water
« Reply #3 on: March 24, 2007, 03:14:07 PM »

It's perfect!I didn't know ActorEntry and ActorLeave!With this two commands you solved also two other problems of mine!
Thank you very much,if you ever come to Rome,I'll pay you a beer ::beer !
P.S.It's been a while since i visisited this forum..where's Mnemonic?
Logged

The Man

  • Occasional poster
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 67
    • View Profile
Re: Walking on water
« Reply #4 on: March 24, 2007, 03:15:41 PM »

Here you are..thanks to bot of you!
Logged
 

Page created in 0.063 seconds with 20 queries.