Jump to content

I need some help with using ANIMDEFS


OnionTaco22

Recommended Posts

I have been trying to make a new switch texture however i can't get it to work. I have the two textures named SW1STRGR and SW2STRGR as they are based off of the STARGR1 texture.

I looked at the ZDoom wiki page for ANIMDEFS and wrote some code that looks like this: 

SWITCH SW1STRGR ON PIC SW2STRGR tics 105 SOUND dsswtchn OFF PIC SW1STRGR tics 105 SOUND dsswtchn

 

I have changed around some stuff in it but I cant get it to actually change the texture.

GZDoom does not show any error when I launch it, so I feel like it's something to do with the tics value but I'm not sure. Also the switch sound plays when I interact with it.

 

Share this post


Link to post

I also kind of had trouble when setting up a switch in ANIMDEFS, but at some point I went with this

switch sw1met1 
on sound switches/normbutn 
pic sw1met1 tics 2 
pic sw2met1 tics 2 

off sound switches/normbutn 
pic sw1met1 tics 2 
pic sw1met1 tics 2

code that I probably copied from some other wad, I can't remember, and it works exactly like it should be.

 

just replace "sw1met1" and "sw2met1" with your textures and you're done!

(you can also change the "switches/normbutn" sounds if you want to use custom ones)

Share this post


Link to post
56 minutes ago, Kan3 said:

I also kind of had trouble when setting up a switch in ANIMDEFS, but at some point I went with this


switch sw1met1 
on sound switches/normbutn 
pic sw1met1 tics 2 
pic sw2met1 tics 2 

off sound switches/normbutn 
pic sw1met1 tics 2 
pic sw1met1 tics 2

code that I probably copied from some other wad, I can't remember, and it works exactly like it should be.

 

just replace "sw1met1" and "sw2met1" with your textures and you're done!

(you can also change the "switches/normbutn" sounds if you want to use custom ones)

Thank you! It did work. Although just a small question, how long is a tick? It seems closer to a second than I thought it would.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...