megatronx's Forum Posts

  • I'm not native english speaker, but i've spent 10 years in UK and I think "They came and took our planet - now it's time to take it back!" flows better.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • megatronx

    Thanks!

    In this case I just have a sprite with it's blend mode set to Destination Out. You can use other blend modes to mask in different ways too, as illustrated here if you scroll down a bit: https://www.scirra.com/manual/146/effects

    Thanks! And you're keeping it on its own layer, sandstorm and mask, yeah?

  • >

    > And how is going the performance?

    >

    I think it's probably pretty good, but I haven't tested it on any lower end machines and there's very little in the layout.

    In other news, here's a dust storm in Reliquary.

    Looks great! I'm working on my project for a long time now, but I'm no where near the quality of yours and many other visuals.

    Btw. How do you guys make masks, like this one in the storm?

  • We should be able to lock to any frame rate we want imho. Turn base rouge like could easily run 15-20 fps to be fully playable.

  • Probably to get the angle of the right stick it would be:

    angle(0,0,gampad.axis(0,2),gamepad.axis(0,3))

    YES!!! Thanks!!! Brilliant!!!

  • Update

    Add push out of custom obstacles feature in "rex_pushoutsolid" behavior.

    megatronx

    Try this new version.

    Ah man, you are a star! Thank you so much!

    But I'd request couple more modifications. One is small: pushing out at slightly different angle - what this would do it would let player keep on moving even when is pressing against solid. This would improve the gameplay a lot. And second, if you'd be able to add "mass" to it, so bigger mass pushes objects with smaller mass harder, that would be insane!

  • Cool electro soundtrack man. Show some screens!

  • Looks ace mate

  • > Any clue what index right stick axes are?

    >

    I haven't used this object myself yet, but you could test this pretty quickly. I've made a capx for you. I hope it works, I can't check myself as I don't have a gamepad hooked up.

    https://www.dropbox.com/s/8pes8gkyav87f ... .capx?dl=0

    The reason it probably isn't specified is because there are many different gamepads out there, each with different amounts of input axes/mappings.

    Thx, but don't have installed latest beta.

  • Hi Megatronx, Is something like this what you are looking for?

    https://www.dropbox.com/s/qf88r9zb2bfwn24/mouse_sustitution.capx?dl=0[/code:257551y6]
    
    Basically you create a second "mouse", if the real mouse is still visible I guess you could make "at the start of layout" > mouse > Set cursor style > none.
    
    That way the mouse would be invisible when it overlaps the game window.
    I hope it helps.
    

    No. I have that already. What I'm after is moving the object at exact angle of the angle of right analog stick. So if I press the stick at 78 degrees, that will be the angle the object moves.

  • Ashley, sorry, but could you help as this is really complicated to me. How can I get a cursor to follow 1:1 the right analog stick on 360 controler? What I'm after is moving the object at exact angle of the angle of right analog stick.

  • Any clue what index right stick axes are?

  • Here is the manual entry for gamepad - https://www.scirra.com/manual/143/gamepad

    I think what you are looking for is the following expression:

    [quote:1iqz9ynz]Axis(Gamepad, Index)

    Retrieve the current position of an analog joystick on a specific gamepad. Index specifies left analog X and Y or right analog X and Y axes, subject to Key mapping. Axes range from -100 to 100. Axis values within the Analog deadzone are returned as 0.

    So use this to get X and Y values that you can use in the arctangent formula.

    Ok, will give it a try mate. Thanks

  • What is your stick? Is it a controller's analog stick (gamepad object), or did you create a touchscreen analog stick with sprites?

    The formula for getting angle in degrees from coordinates is atan(changeinY/changeinX)

    If you are making your own touch analog stick - compare stick's current position to the origin position to get change in Y and change in X, use the formula to get your angle from origin, and then use Move At Angle.

    I use xbox gamepad. How would you do that with it?

  • Use the action:

    Move at angle
    Move the object a number of pixels at a given angle in degrees[/code:28sy298i]
    

    Thanks, ut that's not what I'm after as this is what I'm doing right now, and only have 8 direction ( and I don't fancy manually creating more ). Instead I'm looking for a solution to get angle of the stick, so it moves always at exact angle f the stick, so you can rotate it with stick.