Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • 248485971.mp4

Missing 1 full-res photo, 1 video, as this post has not yet been imported.

Content

Hey guys!

I wanted to do another "how to handle it like a real game" type of video, as I really enjoy exploring how to take things just a little above and beyond to get them working as well as you would expect in...well...a real game!

This one is all about Scrolling UI. I was working on the Shop System for Samurado and realized I didn't know how to implement some of the things I wawnted, like "Auto Scrolling" and how to handle all of that with multiple control schemes, so I figured I'd figure it out, make a tutorial about it, and then implement it into Samurado!

Let me know what you think!

Files

Previews only

Comments

KB @ Birdtek Games

This is really helpful. I was going through a similar situation with inventory UI on my game. Perfect timing.

Sasquatch B Studios

Awesome! So glad you found this helpful. It was kinda fun, yesterday I literally just nabbed the code from this tutorial and threw it into Samurado for the shop system I'm building. Felt really good lol! P.S. I found a bug where if you're hovering over a card with your mouse, and THEN you press something on your keyboard, it skips an iteration of the card (ie. goes 2 to the right/left or 2 rows up/down) This is because of a conflict happening between the Select in the OnButtonSelected script and the MenuController. You can fix this simply by moving your logic in "OnSelect" and "OnDeselect" in the OnButtonSelected script into a coRoutine that first waits 1 frame, and THEN executes the logic afterwards. you'll need to change 'return' to 'yield break' in a coroutine FYI.