Work in Progress

WIP Boo Spot

2

G-9 2021-02-12 12:46 (Edited)

Just like the NSMB DS mini-game !
Move light with arrows and .. that's all :3

Thanks to was8bit for the slow animation :)

Escape.nx | Open in app
2021-02-12 15:33
Escape.nx | Open in app
2021-02-12 12:46

was8bit 2021-02-12 14:20

So cool :)

... I slowed down the animation and added a replay option :)

Escape 2.nx | Open in app
2021-02-12 14:20

was8bit 2021-02-12 16:12

:)

Its an easy trick to control timing to many things... a smaller MOD # speeds things up, while a larger MOD# slows things down...

For frequency timing, as in something occurs every 2 seconds, only have one main game loop with only one WAIT VBL... this sets the game loop at 60 loops per second.. so a frequency of something happening every 2 seconds would require a MOD 120


G-9 2021-02-12 16:30 (Edited)

Thank you ill try remember it :)
Do you have any idea to make the Boos move ?


was8bit 2021-02-12 18:26 (Edited)

Boos on the mooves ;)

Escape 2.1.nx | Open in app
2021-02-12 18:26

was8bit 2021-02-12 18:29 (Edited)

I kept boos on screen by simply making sure they move away from an edge, but you can also loop then around by not changing their moves but by changing their position.. so if a boom is going off the right edge (maybe half off) then change its BOOX() position to the other side, maybe half on...

tweak and experiment until you get what you want :)


was8bit 2021-02-12 18:34 (Edited)

Also, i used a quick and easy math to apply random speed... but this math can sometimes be too fast, sometimes too slow... (rnd-rnd)

A more controled random speed can be done with fancier math, like this...

speed=(0.5+rnd*2)*(RND(1)*2-1)

RND(1)*2-1 will always yield either a 1 or a -1

The 0.5 sets a minimum speed

The total range of speed with this math -+(0.5 to 2.5)

You can tweak and test different math until you get what you like :)

Remember RND by itself alway yields a decimal number from 0 to 0.999

RND(#) specifically returns an integer between 0 to #
So RND(3) yields only 0 or 1 or 2 or 3 ... only these integers


Mrlegoboy 2021-04-07 01:59

They look so cute


Log in to reply.