Object Use - Destroy

Blitz3D Forums/Blitz3D Beginners Area/Object Use - Destroy

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You've not made it clear how the potions fit in with your game, is it 2d or 3d? Do you have multiple potions with different functionality and number of uses or just the one?

Assuming 2d and 1 potion, just don't display the potion image if potion = 0

Potion = 3

;...In main loop

If mousehit(1) and Potion > 0
      Health = Health + 5
      Potion = Potion - 1
endif