How to make a thumbstick(Mobile)

0 favourites
  • 15 posts
  • I have been trying to make a thumbstick for a mobile game, But the attemps i have have failed unfortunately sad face! :(

    Here is what i have so far -- Fiel

  • Commented capx

    Not tested with touch object, but it works with mouse, and touch is about the same logic.Kyatric2011-12-10 22:07:58

    [edit 03-05-2017]

    Commented Capx

  • I made my version of the thumbstick.

    I really rushed through this, so I didn't put any comments or even rename some of the sprites, sorry.

    Hope it easy enough for you to understand. (Start with setting the "MovementTest" layer and the white "Sprite" sprite to 100 opacity)

    I only put mouse controls, but you can easily add touch controls.

    Hopefully I'll have touch added and tested by the end of the week.

    TouchNub.capx

    EDIT: I am aware that I could have used only one sprite instead of the 9 used on the MovementTest layer, but I guess this makes it easier to understand.... or something.

  • Revision with 8dir and using only the touch object with "Use mouse input" set to yes.

    Still does the job

    [edit 03-05-2017]

    Commented Capx

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • sites.google.com/site/tekkitystuffy/ThumbStick_Example.capx

    Here's the link to a little Joystick demo I made, WITH NACHOS!!! <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" /> .

  • Games

    Please don't bump old threads ...

  • Whiteclaws or anyone,

    Why is it wrong to bump old threads by asking questions or sharing examples? I see people complaining about asking questions that have already been asked in old threads, but then there are people who complain if you comment on those old threads. What am I missing, because it seem like a catch 22.

  • Sebastian

    Because it doesn't reflect the current state of things , as of now , if posts are revived , they can contain old depreciated stuff or problems that have been already solved , and that can create wrong thinking ...

    It's better to just create a new topic

  • That makes sense. It was a bit confusing because so many threads point to this one, but it's discouraged to comment on it.

  • KFC

    pleez can u add touch controlls on ur project

    TouchNub.capx

  • I remember this example not being executed very well.

    Also adding touch support shouldn't be that big of a deal for anyone even remotely familiar with the program, and if you're not you should check some of the tutorials.

  • I'm going to bump this 'old' thread because Kyatric just referenced it in a post today. ... it is old (and this is the problem working through the 'How To' FAQ ... some of the references may be out of date.) -- are there any more current examples of touch/ thumbstick type control or is this still the best given the 'current state of things' ?

  • kbtbc

  • I got the 8-direction .capx but the joystick only makes the object move in 4 directions. I'm confused it says 8-direction, but i tried moving the joystick diagonally but the object won't move diagonally.

    Never-mind, I got it! It works in all 8. I added code so when the joystick isn't being touched set speed to 0, but the object "drifts". Like the joystick isn't being touched but the object drifts ever so slightly.

  • FIxed the "Drifting", I set Max speed, acceleration, and deceleration to the same number.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)