Author Topic: Collectables demo  (Read 237 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: 175
  • Karma: +11/-2
    • View Profile
    • Jo Engine
Re: Collectables demo
« Reply #1 on: January 15, 2019, 01:11:04 pm »
Sorry, I don't understand

sbf2009

  • Newbie
  • *
  • Posts: 15
  • Karma: +1/-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 
SMF spam blocked by CleanTalk