Game Development Community

Water push help

by Sinner · in Torque Game Engine · 12/12/2006 (4:28 pm) · 2 replies

Hi can't find anything on this I hope someone can help me?
How do you make water push a player down the river when he jumps in it?

#1
12/12/2006 (10:56 pm)
If you go to the player.cs file and look for Armor::onEnterLiquid() function, you'll see some switch/cases that you can use to help you with this.

I haven't tested it out myself, but I think the only way to do it in script is to call a schedule that moves the player in a direction over and over. Pretty hacky but I'm not that well versed in C++ just yet.

The %obj argument is the one you're going to want to use to manipulate the player's position using %obj.getPosition().

I'll see if I can't get it to work for myself and post again with more info for you hopefully.
#2
12/13/2006 (10:48 pm)
Thanks Jacob for the help I will try that and see what I can come up with. I'am not that
good in C++ yet reel new at it so if you figure it out that would be great or if I do I will post it
thanks again.