7 months ago

THIS ISSUE IS SOLVED! Read the article for my solution.

Escape Block Textures Not Loading Properly

Read the article for my post.


SOLVED!

I saved both the awake and asleep textures as .tres files and rewrote the code to have a single TextureRect use the .tres files.

View the full code on Pastebin: https://pastebin.com/h6W7jGcn

VERSION: v4.2.stable.official [46dc27791]

I am trying to have an escape block with two different textures--an animated one where it's awake and an inanimate one where it's asleep. The textures for my escape blocks display properly sometimes and appear as a blank white texture other times (i.e. when leaving and reentering the scene). I have tried rewriting my code and using different methods and nodes to swap out the escape block textures, but all of them result in the white texture appearing at least some of the time.

Can anyone help me figure out what I’m doing wrong or link me to an answer for reference? I’ve looked around but couldn’t find anything.



0 comments

Loading...

Next up

#GJAsks

My favorite platformer character is Peppino.

pizza pizza time

#MyFavoriteMon is…idk I’m not a fan of the series

Logo for a Mini Noise fangame I'm making I plan to release it by August 15th

Zombie in action! #GameDev #Art #PixelArt

Smol stupid rat for #FanArtFriday Made this back in Joltober, still works for Pizza Time!

Jump, climb, fall and repeat...

#gamedev #indiedev

PREVIEW of Dudaroo and Shu Win Big

Full comic comin' soon, so stay tuned! :D

#LegoWish

If only Pizza Tower had some sort of LEGO set…wait there already are bootleg ones lmao

A new game mechanic - ‘bomb’ It allows you to shoot enemies with increased damage and earn graze points for 2 seconds before the bullets are wiped from the field.

I'm making a webcomic! Coming soon... :)