Thumbstick-template (with capx)

Get help using Construct 2

Post » Fri Jan 03, 2014 10:16 am

I've come across many questions in the "How do I"-section about analog-stick/thumbstick/onscreen joysticks and decided to make a capx showing how to create such onscreen controls for all build-in movement behaviours Construct2 has.

Thumbstick template preview online

(Touch the behaviour name to toggle between the different behaviours)

I'd like your opininions to improve upon this example before posting it online.
Which extra options are needed/wanted?
How could I make it better?

I'd like to thank you for your input and thoughts about this, so I can make it a one-stop solution for those wanting to implement these kind of controls to their (mobile) C2 projects.

Update 5-2-2014

I won't be able to work on this any further, so I have decided to share the capx without any comments and or further improvements/adjustments.

Here's the linkLittleStain2014-02-05 07:52:32
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jan 03, 2014 1:14 pm

Great work, That's a really good demo, nice feel to the travel of the "stick"

To improve, maybe a continuous scrolling in all directions as you soon run into the edge and a sprite change to match the various modes, but they would just be mainly cosmetic.

As I said well done.
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Fri Jan 03, 2014 2:00 pm

@Pixel perfick,

Thanks! I know the graphics are crap at the moment and the area is probably too small, but they are actually only there to show it's working.

For improvements I was thinking of things like being able to put the stick anywhere you want on-screen easily, or adding adjustable speed for the different behaviours depending on distance to the center of the stick (only bullet behaviour has this implemented now).

Also I wanted to know if the response to user input is as expected, but your comment about the nice feel makes me think I chose wisely.

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jan 03, 2014 2:48 pm

Oh, well if you put it like that...Oh and I didn't say the graphics were crap! lol.

A trim to adjust the dead zone
A toggle for button / joystick jump on the platform behavior.
Jump / movement velocity sliders , giving readouts of variables used.
Platforms in the platform section...
Dual joystick option...

If anything else springs to mind I'll post it up...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Fri Jan 03, 2014 2:59 pm

Just keep them coming..

Dual joystick-implementation could be fun..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jan 03, 2014 3:19 pm

For the retro freaks like me...digital type D pad option...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Fri Jan 03, 2014 4:44 pm

For the dual thumbstick option I have chosen to make an example with a tank of which the top can rotate freely..

Update (hopefully coming soon)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jan 03, 2014 4:54 pm

@Pixel perfick

I'm not planning to make a digital D pad, for it should be possible for anyone knowing the basics of Construct2 to create it themselves.
At least from what I understand it would just be sprites with on touched behaviour.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jan 03, 2014 5:53 pm

Looks really good. First I tried it on my computer and everything worked fine. But then I tried it on my iPhone - only the fire button worked, I couldn't get the thumstick to move at all...

It might be nice if the controls went almost completely invisible when there is no touch event in progress - so you can see more of the background.
B
94
S
33
G
20
Posts: 438
Reputation: 17,605

Post » Fri Jan 03, 2014 6:02 pm

@AllanR,

I have only tested on desktop and Android, for I haven't got apple-products. It should work, though. I'll look into what the issue could be, probably something different with touch ID.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: DjowG, jaytrott86 and 8 guests