Gameboy Development Forum

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.

Ads

#1 2020-04-26 02:45:43

gameboy79
Member
Registered: 2020-04-10
Posts: 10

Animation and Timing...

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:
https://abload.de/thumb/bgb000019lkl6.png

Thanks for any hints
gb79

Offline

 

#2 2020-04-26 07:13:26

Tauwasser
Member
Registered: 2010-10-23
Posts: 160

Re: Animation and Timing...

Yes, counting frame is pretty much how everything does it.

Offline

 

#3 2020-04-26 11:01:15

gameboy79
Member
Registered: 2020-04-10
Posts: 10

Re: Animation and Timing...

Thanks, I implemented smooth scrolling and movement by counting frames smile

Offline

 

#4 2020-04-27 09:24:09

ISSOtm
Member
From: Somewhere in Echo RAM
Registered: 2017-04-18
Posts: 160
Website

Re: Animation and Timing...

Wdym with smooth scrolling and movement? TImers are best used for animations, since the frames are discrete, but not for movement.


The French Lord Of Laziness.
Legend of Zelda and Undertale fan, I also tend to break Pokémon R/B/Y a little too much.

Twitter | Me on GCL | Discord : ISSOtm#9015 | Skype : isso.tm (I don't login anymore)

Offline

 

#5 2020-04-27 09:58:25

gameboy79
Member
Registered: 2020-04-10
Posts: 10

Re: Animation and Timing...

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?

https://abload.de/thumb/3hmvowhqd0iuj10.gif

Last edited by gameboy79 (2020-04-27 10:02:02)

Offline

 

#6 2020-04-28 09:30:38

ISSOtm
Member
From: Somewhere in Echo RAM
Registered: 2017-04-18
Posts: 160
Website

Re: Animation and Timing...

Ah, you're using grid-locked movement. Makes sense, then.


The French Lord Of Laziness.
Legend of Zelda and Undertale fan, I also tend to break Pokémon R/B/Y a little too much.

Twitter | Me on GCL | Discord : ISSOtm#9015 | Skype : isso.tm (I don't login anymore)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson