2 years 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

Locust swarm...just kidding, I'm only testing out my game's spawning system Join the Discord: https://discord.gg/Jmbey2GgQg Also wow this is my first GameJolt post in 290359290e92485 years #gamedev #indiedev #godot

Bush Stole the Precious Votes! (JibJab YTPMV) https://www.youtube.com/watch?v=05mc3_DE8Aw

This indie RPG lets you shape the perfect attack using cute insects. - Collect 50+ unique "INSECTILES" - Experiment with a plethora of unique combat abilities - Explore a beautiful world teeming with life Would you play INSECTILE?

PREVIEW of Dudaroo and Shu Win Big

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

A little look 👁️ at the new environment we are building... (WIP)

#gamedev #indiedev #indiegames

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

I made a game for the GMTK Game Jam 2024 https://itch.io/jam/gmtk-2024/rate/2907360

I released the demo for my Tactical Strategy game Tacticauldron! It's a game where every attack is customized by mixing magic ingredients in a cauldron!

DUDAROO AND SHU WIN BIG