Author Topic: Collectables demo  (Read 2243 times)

juangenial452

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Collectables demo
« 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?

mindslight

  • Administrator
  • Full Member
  • *****
  • Posts: 189
  • Karma: +19/-3
    • View Profile
    • Jo Engine
Re: Collectables demo
« Reply #1 on: January 15, 2019, 01:11:04 pm »
Sorry, I don't understand

Emerald Nova

  • Newbie
  • *
  • Posts: 19
  • Karma: +2/-0
    • View Profile
    • Emerald Nova Games
Re: Collectables demo
« Reply #2 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.

 

Sitemap 1 2 3 4 5 6 7 8 9 10