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.

AppGameKit Classic Chat / [SOLVED] 2d Sprite physycs not detecting collision

Author
Message
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 24th Jun 2020 18:32
So all I ask for is a Sprite to = 1 if it collides with another Sprite. Here is the stupid problem. There never over lapping. They can't over lap with physics. I can't . I looked and tied every thing. Even casting a ray , but am not sure how to cast a collision ray. What to do with the values. I am lost.

Is there not a function to check collision for touching? Not over lapping.

The author of this post has marked a post as an answer.

Go to answer

fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 24th Jun 2020 19:51
This post has been marked by the post author as the answer.
integer GetContactSpriteID1() to return the first contact
or


please see help https://www.appgamekit.com/documentation/Reference/2DPhysics/GetSpriteFirstContact.htm

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 24th Jun 2020 20:39
Thank you, I looked at contacts but was not sure how to implement it correctly. I'm new to app game kit.

Login to post a reply

Server time is: 2024-03-28 23:04:27
Your offset time is: 2024-03-28 23:04:27