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 / dbDot and Collision

Author
Message
Blackout1471
12
Years of Service
User Offline
Joined: 21st Dec 2011
Location: Visual C++ Express
Posted: 9th Jan 2012 18:20
Is there any way you can check if dbDot do collision with a enemy?

heres code


Beginner In the Language.
_Pauli_
AGK Developer
14
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 9th Jan 2012 18:36 Edited at: 9th Jan 2012 18:36
The purpose of dbDot() is just do draw a pixel at the given screen coordinates. What do you mean with collision?
Maybe you want to check if the pixel at these coordinates is inside a certain area?
If that's the case then just do a comparison like this:



Blackout1471
12
Years of Service
User Offline
Joined: 21st Dec 2011
Location: Visual C++ Express
Posted: 9th Jan 2012 19:13
Sorry that won't work i guess i have to find another way.

Beginner In the Language.
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 9th Jan 2012 20:12
I posted at the bottom of your other thread:
http://forum.thegamecreators.com/?m=forum_view&t=193159&b=22

The fastest code is the code never written.
Blackout1471
12
Years of Service
User Offline
Joined: 21st Dec 2011
Location: Visual C++ Express
Posted: 9th Jan 2012 20:40
ohhh, Then sorry about this thread and thanks Hawkblood

Beginner In the Language.

Login to post a reply

Server time is: 2024-04-25 07:33:10
Your offset time is: 2024-04-25 07:33:10