Captain_Neko Posted March 16 So I made a Tree (TRED.png) to be used as a Decoration I flowed some tutorials and ended up with this in Slade. But when I go into UDB the name of the decoration is correct but I get a frame of the red torch instead of my beautiful tree! I'm unsure how to fix this... 0 Share this post Link to post
0 Captain_Neko Posted March 16 I HAVE FOUND THE SOLUTION!!!!!!!!!! All I had to do was to change States { Spawn: DTRE A 0 Stop } } to States { Spawn: DTRE A -1 Stop } } Not relay sure why changing the rotation from 0 to -1 was the solution but im not going to look this gift horse in the mouth! Thanks for the help y'all! 1 Share this post Link to post
0 rouge_means_red Posted March 16 The sprite has to be named TREDA0.png (TRED is the sprite, A is the frame, 0 is the rotation) 3 Share this post Link to post
0 jaeden Posted March 16 13 minutes ago, rouge_means_red said: The sprite has to be named TREDA0.png (TRED is the sprite, A is the frame, 0 is the rotation) Yes this, and also the folder it is in needs to be named "Sprites" for it to be registered as a sprite. And also TRED is already a name of sprite for the red torch, so it is probably better to give it different name, otherwise existing red torches will flicker between the tree sprite (1 frame) and original torch sprites (3 frames). 1 Share this post Link to post
0 Captain_Neko Posted March 16 Quote Yes this, and also the folder it is in needs to be named "Sprites" for it to be registered as a sprite. And also TRED is already a name of sprite for the red torch, so it is probably better to give it different name, otherwise existing red torches will flicker between the tree sprite (1 frame) and original torch sprites (3 frames). ahhhhhhh! I wasn't aware of that. Thanks. 1 Share this post Link to post
0 Captain_Neko Posted March 16 I did what was suggested but now there is a new problem. the tree appears in UDB when I'm editing but it doesn't when I play test. 0 Share this post Link to post
0 plums Posted March 16 Offsets maybe? Try selecting the tree sprite in SLADE and clicking the "modify offsets" button at the bottom of the screen, use automatic offsets for monster. 0 Share this post Link to post
0 Captain_Neko Posted March 16 (edited) 19 minutes ago, plums said: Offsets maybe? Try selecting the tree sprite in SLADE and clicking the "modify offsets" button at the bottom of the screen, use automatic offsets for monster. No luck. Maybe because its a Graphic (DOOM) instead of a Graphic (PNG)? Edit: it was not. Edited March 16 by Captain_Neko 0 Share this post Link to post
0 plums Posted March 16 58 minutes ago, Captain_Neko said: Not relay sure why changing the rotation from 0 to -1 was the solution but im not going to look this gift horse in the mouth! That's not the rotation, that's the frame duration. You don't specify the rotation in the state definitions, it's chosen based on the angle you're viewing the sprite at. (rotation 0 means it looks the same from all directions though.) For duration, 0 means display for 0 frames, which means never show up. -1 on the other hand means infinite duration. Glad you got it fixed! 1 Share this post Link to post
So I made a Tree (TRED.png) to be used as a Decoration
I flowed some tutorials and ended up with this in Slade.
But when I go into UDB the name of the decoration is correct but I get a frame of the red torch instead of my beautiful tree!
I'm unsure how to fix this...
Share this post
Link to post