OnionTaco22 Posted December 17, 2023 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. 0 Quote Share this post Link to post
Kan3 Posted December 17, 2023 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) 0 Quote Share this post Link to post
OnionTaco22 Posted December 17, 2023 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. 0 Quote Share this post Link to post
Kan3 Posted December 17, 2023 36 minutes ago, OnionTaco22 said: 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. 1 tic is 1/35 seconds 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.