2 years ago

Here's a little bit of insight into my UI Juice.


It's a really simple system, first I check for the button press, which is grouped into direction or confirm.

Then Instead of having the code repeated throughout the whole thing, if you can't go left or right I set a type value to "H", for up or down it's "V", if it's the confirm button it's "STILL".

I also have a temp value to determine the direction, forward or back stored as a 1 or -1, with an initial default as 0.

Then at the end of the button press code I run a script with those 2 values which reset and fires off a lerp.

The orientation tells it which value needs to be lerped, either Horizontal or the Vertical with the direction value being multiplied by the lerp amount to invert it if necessary.

The lerped value is then applied to the draw x/y or scale of the relevant UI part! THEN IT GOES BOING!



3 comments

Loading...

Next up

There we go! Features now effect which floor layout parts are used! This was already the case for floors with only one feature, but since I added the multipart Ruins all parts were the same (aka all with water around them).

NooooooOooOoOoo the army of rotten eggs grows

Happy GOBtober, and happy birth month everyone! I hope you're all doing well!

Here's what I got done in September!

Original post here: https://www.patreon.com/posts/138550640

Doki Doki Literature Club is celebrating Monika's birthday and the 8th anniversary of DDLC with exclusive stickers, avatar frames and backgrounds on Game Jolt! 

Head over to the shop to collect yours 👉 https://gamejolt.com/#shop

#gjbroadcast

Re-worked the wall code for Caves and Ruins so I can have both tilesets at once, and made it so walls can't generate over the Teleporter/Stairs. Now I just need to figure out how best to stop areas getting blocked off (since you can only mine ore walls)

Dive into the cozy post-apocalyptic open world of Critter Cove!

Gentleman Rat Studios (@GR-Rob ) describe it as “a little bit Animal Crossing, a little bit Stardew Valley. Maybe even a little bit Windwaker, too."

Wishlist the game: https://bit.ly/CritterCove

Failed to get the meteorite needed for mega evolution, but i got a shiny at least.

Wasted a bunch of remote raid passes

Still like 200 cards i need so i did another 10 pull and got nothing fancy that I didnt already have

Mae Borowski is the main character of Night in the Woods! It's an adventure game that tells the story of her return to her hometown of Possum Springs. She was confirmed as canonically pan in a social media post by the game's creator Scott Benson.

Anyone else suddenly craving cheese pizza???

Testing out some shaders for lava tiles.