Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Hi,
I started programming the old Gameboy (in asm) recently.
So far I can walk around, collide with the environment and interact with certain objects.
But I only move tile-by-tile.
What is a proper way to get a decent "timer" for animations and movement? Just counting frames?
Screenshot of my little game-to-be:
Thanks for any hints
gb79
Offline
Yes, counting frame is pretty much how everything does it.
Offline
Thanks, I implemented smooth scrolling and movement by counting frames
Offline
Wdym with smooth scrolling and movement? TImers are best used for animations, since the frames are discrete, but not for movement.
Offline
I wanted to do a smooth walk (animation are still a to-do). So one D-Pad press results in a eight pixel wide movement (a single tile) but in a smooth way. When holding down the D-Pad it results in a constant movement (just like in Pokemon or Final Fantasy).
It looks fine for me now (counting frames). Is there a way to upload a gif directly or do I have to use an external hoster?
Last edited by gameboy79 (2020-04-27 10:02:02)
Offline
Ah, you're using grid-locked movement. Makes sense, then.
Offline