Make ThumbStick follow the character

Get help using Construct 2

Post » Wed Feb 20, 2013 10:54 pm

I search everywhere on the forum but i dont found an example of a thumblestick that follows the character except for this one:

http://dl.dropbox.com/u/36472942/construct/forumhelp/ThumbStick_Example.capx]ThumbleStick by Kyatric

but i cannot find a way to make it follow my character properly without have problems with position of the thumbstick,etc.

i'm trying to make something like this:

https://www.scirra.com/tutorials/398/touch-stick-controllers/page-3

But it has to follow the character

Someone has an example of this?

Thanks in advance and sorry about my bad english.Alraune2013-02-20 23:53:38
B
1
Posts: 3
Reputation: 381

Post » Thu Feb 21, 2013 2:32 am

Hello Alraune. Are you talking about showing a thumbstick control on the screen, like a heads-up display? If you want something to show up on the screen and stay around as the player moves, check out this tutorial: https://www.scirra.com/tutorials/37/beginners-guide-to-construct-2/page-7/page-7
B
16
S
6
G
2
Posts: 152
Reputation: 3,764

Post » Thu Feb 21, 2013 1:53 pm

Yeah, i know but if i use parallax on the pad of the tutorial it doesn't work and the one that i posted a link it's a little hard to use cause you always have to keep the thumb on the pad.
B
1
Posts: 3
Reputation: 381

Post » Thu Feb 21, 2013 8:07 pm

@Alraune - Huh, it's strange that you can't get it to work. Maybe you can share a capx and we can see if there's something there?
B
16
S
6
G
2
Posts: 152
Reputation: 3,764

Post » Fri Feb 22, 2013 5:58 pm

https://www.dropbox.com/s/5orku57nvnl36hm/TestThumbStick.capx

I made this capx real quick to post a simple version of my problem.

The problem is that i want the pad following my character but i cant achieve a way to make it work
B
1
Posts: 3
Reputation: 381

Post » Fri Jul 05, 2013 3:56 pm

Hi, i'm having the same problem here... did you find any solution Alraune?

In case any of you didn't understand... we're trying to make a static thumbstick while the background moves around keeping the main character on-center of the screen.

I was using the "scroll-to" behaviour on the character... but that might be the problem.

Unfortunately we can't just move the background and keep the character stuck in the center as there are too many sprites and physics for that to work.

Any ideas would be greatly appreciated!

Thank you :)
B
8
S
1
Posts: 37
Reputation: 893

Post » Fri Jul 05, 2013 6:50 pm

I took a look at the .capx and the problem was that the thumbstick was in the wrong layer. It should be in the "Pads" layer.

@Villa4480 make sure the pad is in another layer with no scrolling.Rising2013-07-05 18:51:40
B
6
Posts: 17
Reputation: 309


Return to How do I....?

Who is online

Users browsing this forum: gregorysforster, jeffige, Matthew de, onzephyr and 1 guest