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

Ok, @gamejolt somethings definitely up with quests looking at the 4/7 that means I was right and my quests didn't reset yesterday.

Previous post: https://gamejolt.com/p/has-atgamejolt-gj-jolt-changed-when-your-…

Urm waht?

So when you guys called yourselves GameFREAK...

Too spooky!

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

My mam gave me her old laptop, once ive finished setting it up ill get the thanks sent out!

Got it partitioned and just setting windows and possibly Linux, given everything Microsoft is doing I think now is a good time.

Thank you for your patience

We're about halfway through #Joltober, and here is some of the great art we've seen so far!

Artists are tagged in the article. Be sure to like their original posts!

Explore the tags to see even more great art!

HMM! Well I think I've made it better? Framerate seems more stable on this poor laptop?

Not bad for built in graphics.

3 new card packs! 1 pull of each!

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

Well i'm def getting somewhere, now to make the lava glow less grid aligned

Sorry i've not been around much my tablet finally gave out and thats limited me