Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Need Help With My 2D Game Zapptrix. Health Not working!

Author
Message
Computer Nerd
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 8th Jul 2005 06:55
When I touch a pill for health that it doesn't add to my health,
and won't stay deleted. When I touch the creatures in my game that
the health gets set to 900 and subtracts by a 100 each time after when it's supposedly set to 100 and supposed to subtract by 5.
Another problem I have is with bullets I'm not making a 3D game it's
2D. Before I can solve these problems Zapptrix won't be made.

Working On Azure Destiny 2D RPG Game.
Founder and CEO Of Magick Software.
Zone Chicken
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: `~-..-~`~-..-~`
Posted: 8th Jul 2005 09:33 Edited at: 8th Jul 2005 09:34
posting some code would be helpful.

example
gotpill = 10
health = 100
hitbycreature = -5

if collision(player,creature) = 1
health = health - hitbycreature
endif

if collision(player,pill) = 1 and sprite visable(pill) = 1
hide sprite pill
health = health + gotpill
endif

only thing i can post with the information you gave.

Your signature has been erased by a mod -- please resize to under 600x120...

Login to post a reply

Server time is: 2024-09-23 23:31:50
Your offset time is: 2024-09-23 23:31:50