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 / Any version bug: SetSpriteShape(SpriteNum, 0) working the same as SetSpriteShape(SpriteNum, 2)

Author
Message
Alex_Peres
AGK Master
14
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 6th Oct 2015 22:43
Any version bug: SetSpriteShape(SpriteNum, 0) working the same as SetSpriteShape(SpriteNum, 2)
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 7th Oct 2015 12:19
From the docs:
Quote: " If you select no shape (0) then any existing shape will be deleted, and hit testing will use the sprite dimensions instead."


What do you expect to happen? I can't see why you think this is a bug.


V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Alex_Peres
AGK Master
14
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 7th Oct 2015 13:28
When I set shape to zero - I expect to not be able to click on this sprite.
To check clicking I use:
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 7th Oct 2015 13:42 Edited at: 7th Oct 2015 13:44
hmm, maybe try
0,0,-1,-1
SetSpriteShapeBox( iSpriteIndex, x, y, x2, y2, angle )

if we had GetSpriteShape paul could check this in hittest and ignore the none shapes
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Alex_Peres
AGK Master
14
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 7th Oct 2015 20:36
thank you Markus. I found the similar way, but it needs to work right.

Login to post a reply

Server time is: 2024-04-26 18:03:32
Your offset time is: 2024-04-26 18:03:32