3 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

Ooo pretty!

Updating water, added some stuff to make things more visually pleasing. I think I need the tint back or maybe to try different blending. Kinda want to try a displacement map again instead of the directional movement? Need to find that again. (laptop gif)

Final result for Pokemon Go In to the Wild event.

26 mighties. 1 shiny.

1 random shiny.

Shiny Cresselia from the pass.

Galarian Atricuno!

Grimsnarl gigantamax.

3x shadow Darkrai.

Not bad to be honest!

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

A friend took granny out for the day so I was able to take part in today's Pokemon Wild Event.

Fricken caught a Galarian bird finally! Articuno in a Safari ball for guaranteed catch!

Happy November everyone! I hope you all had a wonderful October! Mostly optimisation and reworks this month.

https://www.patreon.com/posts/141102397

OMGOSH, don't sleep on this quest!!!

Shame you can't go over 7 charges

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.

Favourite #TeamShooter? I Would never! It's illegal to shoot people, never mind a whole team!!