Active area bigger than actor

Game Editor comments and discussion.

Active area bigger than actor

Postby peedalein » Sat Sep 24, 2011 7:33 pm

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
peedalein
 
Posts: 54
Joined: Mon May 17, 2010 2:26 pm
Score: 1 Give a positive score

Re: Active area bigger than actor

Postby schnellboot » Sat Sep 24, 2011 9:05 pm

make a filled region over the button and inherit the actions
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Active area bigger than actor

Postby peedalein » Sat Sep 24, 2011 10:20 pm

Thanks!
peedalein
 
Posts: 54
Joined: Mon May 17, 2010 2:26 pm
Score: 1 Give a positive score

Re: Active area bigger than actor

Postby skydereign » Sat Sep 24, 2011 10:47 pm

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).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest