Skip to main content
12 events
when toggle format what by license comment
May 10, 2015 at 22:05 comment added user65825 gamedev.stackexchange.com/questions/100751/…
May 10, 2015 at 21:57 comment added StrongJoshua Can you edit your question and maybe add a picture of that and your updated code?
May 10, 2015 at 20:54 comment added user65825 I changed as you said but now touch is detected in my circle and in another part of the screen which is the right and down quadrant
May 10, 2015 at 19:22 comment added StrongJoshua @user65825 Well, your radius is hardly your full width/height, but it should work (albeit not perfectly). In your actor's draw method can you change the batch.draw call to batch.draw(tex, getX(), getY(), getWidth(), getHeight())? Because right now you are drawing the circle at 0, 0 even if it is not actually there.
May 10, 2015 at 17:39 comment added user65825 Should It be correct? this.setSize(radius,radius); this.setPosition(position.x,position.y); I put this code before addListener but it doesn't work
May 10, 2015 at 17:32 comment added StrongJoshua @user65825 You haven't set your actor's size or position (although the default is 0, 0 so your current implementation can get away with that).
May 10, 2015 at 16:59 comment added user65825 I did what you said but it doesn't work, my touch isn't detected. pastebin.com/4tfUnWZs
May 9, 2015 at 10:28 vote accept user65825
May 9, 2015 at 10:28 comment added user65825 I am going to use this and I'll let you know the result. For now this is the best answer
May 9, 2015 at 0:08 comment added StrongJoshua @user65825 I would recommend using Scene2D, if you aren't too far along. But I can elaborate on this answer to cater toward non-Scene2D users if you want, just let me know.
May 8, 2015 at 23:57 comment added user65825 I don't use Actor
May 8, 2015 at 22:42 history answered StrongJoshua CC BY-SA 3.0