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.

Dark GDK / Struct boxes collision

Author
Message
Blackout1471
7
Years of Service
User Offline
Joined: 21st Dec 2011
Location: Visual C++ Express
Posted: 29th Jan 2012 19:05
my problem is that i don't know how i can do so that if my player touch the box he die, can anyone please help.



Beginner In the Language.
Hawkblood
10
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 30th Jan 2012 15:00
In your "update box" portion of code:

You need to put something that tests the box's x,y against the player's x,y. I would use a range like +/-5 for the x,y of the player:


The fastest code is the code never written.
Blackout1471
7
Years of Service
User Offline
Joined: 21st Dec 2011
Location: Visual C++ Express
Posted: 30th Jan 2012 20:32
Thanks Hawkblood you have almost coded my game xD

but i have learned very much Thanks.

For the NOOOBS!

Login to post a reply

Server time is: 2019-12-15 07:15:03
Your offset time is: 2019-12-15 07:15:03