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 AppGameKit Corner / What's wrong with AddSpriteShapeCircle?

Author
Message
Chara Bill
7
Years of Service
User Offline
Joined: 6th Apr 2017
Location:
Posted: 3rd May 2017 18:07
Hello guys!
I've just tried the function AddSpriteShapeCircle with the radius set to 85:



and that's how it looks:


Hm, I'm very very sorry, I completely don't want to be rude or something, but don't you think this circle doesn't look very... round?
The point is, I would like to have a normal circle in the project I'm making. Is there any way?
Any help would be highly appreciated!
MikeHart
AGK Bronze Backer
20
Years of Service
User Offline
Joined: 9th Jun 2003
Location:
Posted: 3rd May 2017 19:46
Do you want it for visual purposes or for collision detection, which this function is all about?
Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200. Using AGK2 Tier 1.
Chara Bill
7
Years of Service
User Offline
Joined: 6th Apr 2017
Location:
Posted: 3rd May 2017 19:58
Quote: "Do you want it for visual purposes or for collision detection, which this function is all about?"

For explicit collision detection. Final user won't be able to see collision masks.
Jerry McGuire
7
Years of Service
User Offline
Joined: 25th Mar 2017
Location:
Posted: 5th May 2017 18:26 Edited at: 5th May 2017 18:28
You can use the SetSpriteShapeCircle(...) function. it gives a bounding circle to your sprite. Look it up in the commands list.
AppGameKit 2017.04.24 (Steam)
Windows 7 Professional 64bit, Service Pack 1
Dell Precision T7400:
Intel Xeon CPU E5405 @ 2.00GHz (2 processors)
16GB RAM
Nvidia GeForce GTX 560 Ti
Samsung SSD 850 EVO 250GB and SanDisk SDSSDXPS960G

Login to post a reply

Server time is: 2024-04-19 22:23:02
Your offset time is: 2024-04-19 22:23:02