Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
UnawarePresence

Sprite help

Recommended Posts

It is pretty much the same as null, and no you don't need a sprite for it.

Share this post


Link to post
UnawarePresence said:

So its sort of like NULL? And do I need a sprite called TNT1 to use it?

The difference with NULL is that TNT1 really "exists" as far as the code goes. It's a special case treated as invisible. NULL isn't a special case, it's only invisible because you don't provide sprites for it; but if you did, it'd show.

Here's an example where using NULL instead of TNT1 is a bad idea: ZDoom uses the sprite from the first frame of the spawn state to guess if an actor's sprites are present or not. If it's TNT1, it'll know that it's invisible, so it'll count as present. If it's NULL, however, it'll look for the NULL sprites, won't find them, and will instead spawn an error marker.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×