Mr X's Forum Posts

  • Right now I'm checking these out.

    tutorials/1075/making-an-easy-touchpad

    tutorials/398/touch-stick-controllers

    Can I get back to you and answer your question later, if I need to fall back to your solution?

  • Yep, that's the one i saw. Your solution is great, but I don't understand it to be able to adapt and integrate it into my project.

  • My first reaction is that why isn't a thumbstick object included in a game creation application from the beginning by Scirra, together with the other form controls? Since controlling a player character is absolutely vital to games. On the other hand, maybe there's a good reason why it doesn't exist, although I can't think of any...

    Anyway, I've looked at a project that I found somewhere but it seems too complex and overwhelming to understand without explanation. I'm curious if there's other, maybe simpler solutions out there.

    How do I create this myself in an easy and understandable way for a newbie? Is there a tutorial or a simple project showing how it's done?

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Awesome! That was exactly what I initially had in mind. Tested it and it worked like a charm. Thanks both of you for your responses and solutions.

  • That solved it!

    I used this line which chooses from 6 different angles for left and 6 for right.

    int(choose(20,40,60,340,320,300,160,140,120,200,220,240))[/code:1fyzdppr]
    
    Thank you very much.
  • Random(180,360)

    Unfortunately that still includes 270 degrees. Wish I could include images or URL's to show what I mean.

  • Hi,

    What I have now:

    A ball spawning in the centre of the screen and I'm at the moment using random(360) to make it shoot in random directions with the bullet behaviour.

    What I want to do:

    I want to control the direction which random(360) won't allow. For example if the generated random number is around 90 or 270 it means that the ball shoots down or up, which I don't want. I want to direct the ball a bit more to the left and right.

    How do I go around this and solve the issue?