Page 1 of 1

Active area bigger than actor

PostPosted: Sat Sep 24, 2011 7:33 pm
by peedalein
Hello helpful folks!

In my game the main actor is controlled through two arrow buttons (<>). Touching the buttons (ipod) makes the actor go left or right. There is one glitch.
If I touch the arrow on the thick part, the control works fine. However, if I touch the arrow on the thin part, the control does not work very well. I guess that is so as the active area becomes very small.

Is there a possibility to enlarge the active area of my actor without enlarging the actual graphic?

Thanks for your help!

P

Re: Active area bigger than actor

PostPosted: Sat Sep 24, 2011 9:05 pm
by schnellboot
make a filled region over the button and inherit the actions

Re: Active area bigger than actor

PostPosted: Sat Sep 24, 2011 10:20 pm
by peedalein
Thanks!

Re: Active area bigger than actor

PostPosted: Sat Sep 24, 2011 10:47 pm
by skydereign
Depending on how you coded your button, just inheriting it won't be enough. What I usually do is have the button create the filled region, that way the filed region can use creator to access the button's actor variables (so you can change the animation, frames, rgb, and anything else you might want).