Swimmable Character Sprites?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Sekto
Posts: 306
Joined: Thu Feb 19, 2004 11:03 am
Location: England ;p, my name is Callum Sanderson it is!
Contact:

Swimmable Character Sprites?

Post by Sekto »

is there a way for when a creature or player touches a certian sector [pref underwater/liquid] it goes to a swim state? until it leaves the area
User avatar
Phobus
Posts: 5984
Joined: Thu May 05, 2005 10:56 am
Location: London
Contact:

Post by Phobus »

Nope. It's impossible to detect the flat, and it's impossible to change states with scripts.
User avatar
Sekto
Posts: 306
Joined: Thu Feb 19, 2004 11:03 am
Location: England ;p, my name is Callum Sanderson it is!
Contact:

Post by Sekto »

not even just for the player?
how about when the lung capacity meter in the corner shows up
your sprite changes to?
(IF YOU CAN IMPORT METERS ;/)
User avatar
Phobus
Posts: 5984
Joined: Thu May 05, 2005 10:56 am
Location: London
Contact:

Post by Phobus »

You can make a meter to measure how long you've been under water, and damage the player when ti runs down, but only if you use sector action things in conjunction with the player having a TID.

Complex stuff.
User avatar
LilWhiteMouse
Posts: 2270
Joined: Tue Jul 15, 2003 7:00 pm
Location: Maine, US
Contact:

Post by LilWhiteMouse »

Dunno if it's available yet, but isn't this the purpose for having
A_JumpIf (waterlevel, int offset)?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

If the walking sequence of the player is anything but a simple non-branching loop very strange things can happen so better don't even think about it.
User avatar
Phobus
Posts: 5984
Joined: Thu May 05, 2005 10:56 am
Location: London
Contact:

Post by Phobus »

Wait... you're telling me that all those times that function or something similar has been added, it's actually paid off at last?
Locked

Return to “Editing (Archive)”