Jo Engine Forum

Sega Saturn Development => Jo Engine Wish List => Topic started by: juangenial452 on October 20, 2018, 11:05:59 pm

Title: Collectables demo
Post by: juangenial452 on October 20, 2018, 11:05:59 pm
I'm trying to understand how to make collectables in 2d but I can't understand. Can you make a demo?
Title: Re: Collectables demo
Post by: mindslight on January 15, 2019, 01:11:04 pm
Sorry, I don't understand
Title: Re: Collectables demo
Post by: sbf2009 on January 15, 2019, 02:58:05 pm
It sounds like more of a logic problem than an engine problem. You want to keep track of a collectible using some sort of static integer, then increment it or track it per level whenever the player sprite collides with the collectible sprite, then destroy the collectible sprite. If you want to track it on an individual basis, you'll want to track each collectible in an array of bools.

Since this isn't a Jo Engine specific problem, any tutorial on 2d game design featuring collectible objects should do, just adjust the rendering portion for Jo Engine.