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 / Clip Sprites together when "in-range"

Author
Message
DannyD
8
Years of Service
User Offline
Joined: 29th Aug 2017
Location:
Posted: 23rd Apr 2019 16:04
I'm busy with a little block building educational "game"
Pieces can be added together to build various shapes.
Left Click - add a new "object"
right click, rotate the object in 45 deg increments
Drag the sprite bottom left - delete the sprite

Bars can be added.
Is there some guru's who can give some advice on how to "CLIP" the parts together?
If a "bar" is correctly rotated and in range of the other object, it "clip" in position
See the attached video

Thanks

Attachments

blockdemo.mp4
Kevin Cross
22
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 23rd Apr 2019 16:10
Can't help with the problem. Just wanted to say it looks like an interesting project.
OryUI - A WIP AGK2 UI Framework
blink0k
Moderator
13
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Apr 2019 01:56
What I would do is make a series of anchor points on each piece. If two anchors are close together then snap! I can write something up if can send me a few images to work with. How many degrees do they rotate at a time?
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
blink0k
Moderator
13
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 24th Apr 2019 03:03
Looking at the video it's 45 degree increments. I extracted a cog and joint from the video. Hope that is ok

Attachments

images.rar

Login to post a reply

Server time is: 2026-06-10 05:56:47
Your offset time is: 2026-06-10 05:56:47