Swimming pool and blob

Topics regarding Scripting with Reality Factory
Post Reply
Vandal
Posts: 22
Joined: Sat Dec 22, 2007 10:18 pm

Swimming pool and blob

Post by Vandal »

Hey im new!and i want to know how to make a pool where the player can swim and an object that is like a blob like the loco roco guys! thx for all your help!! :D
SEIZURE TIME!!!!!
User avatar
Destron
Posts: 520
Joined: Thu Apr 19, 2007 7:30 pm

Post by Destron »

I'm not really sure what you mean with the Loco Roco thing, but if you're looking for a good water tutorial, check this out:

http://www.realityfactory.info/forum/vi ... php?t=1525

Not sure about the swimming thing, though... you'll probably have to do some script editing so that the player animations change while he's in the water.
User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Post by bernie »

Virgil and Nadia both can swim. So can universal human and universal woman with virgils animations.
Vandal
Posts: 22
Joined: Sat Dec 22, 2007 10:18 pm

Post by Vandal »

if swimming is possible then how? and by blob i mean when the player collides with it he gets stuck and his health decreases
SEIZURE TIME!!!!!
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

You need a Liquid entity. The Liquid entity simulates liquids (yeah i think you guessed that...). You can make thinghs ranging from normal water to lava to zero-g, swamps are also possible.

First, you must have your water brush (in the level editor) and make it a world model. Then, when you have the world model, you must create a liquid entity (it does not matter where it is) and assign the model to it in its entity attributes. This makes the water-brush a real 'water'-brush.

You now have a basic water liquid which can furthermore be adjusted with the entries of the liquid entity. Search in the docs under the Liquid entity for more info. You can, for example, make the player's movements slower or you can reverse the rulus of gravity, allowing thinghs that fall into the liquid to be swimming on top of the liquid. (the player will be pushed upwards too, so be carefull with that)

btw, welcome to the forums and merry cristmas! :D
Everyone can see the difficult, but only the wise can see the simple.
-----
Vandal
Posts: 22
Joined: Sat Dec 22, 2007 10:18 pm

thx..

Post by Vandal »

Srry for replying late but thx! But What is a world model? :mrgreen:
SEIZURE TIME!!!!!
Post Reply