LittleStain's Forum Posts

  • There is no way to see why the game crashes by playing it..

    Have you run the game through the debugger?

  • Would using global variables and setting the speed and decelleration based on that work for you?

  • Many ways to do this..

    Easiest way might be using a sprite with the scrollto behaviour and moving it the wanted amount on click..

    You could use the bullet behaviour in the way it is used in the move to example shipped with Construct2.

  • I'm not sure what kind of movement you are looking for,.

    You might want to rotate it around a point outside of the sprite..

    move it left and right and back with any of the built in behaviours..

    Sine could do it..

    bullet behaviour could..

    It all depends on the way you'd like the movement to look..

  • Your "hack" doesn't work..

    Setting something to a negative value might work sometimes, but it isn't the way it's supposed to..

    I'd recommend looking for a different, but better solution for your issue..

  • There's a difference between the physics engine and the normal engine..

    To disable physics collisions add an action in the event sheet to do so, like I said in my previous post..

    If you deactivate collisions in the properties you will not be able to check for overlap with the object and I'm guessing that is not what you want..

  • Edit: Also how can i erase the wire colisions? i want the swing and move beetween them without collision.

    You mean disable collisions with a certain object?

    There's an action for that in the physics actions of every object..

  • Indeed in this case I just used the group variable of the links (which is the uid of the chainbox) straight from the editor..

    Making it a function and calling the function with chainboxes.uid as parameter, would solve this..

    You'd only have to decide which chainboxes to attach electricity to and which to close at both ends..

  • How do I touch object then it will shake ?

    What action I should add ? I can't fine shake action

    Thank

    What does a shake look like?

    Up and down or left to right or both combined?

    If you know what it should look like, it shouldn't be hard to create with either one of the build in behaviours or some events setting the position (maybe even rotation?) of the sprite..

  • perhaps you could use tokenat to split your text and then add in a newline as required ?

    see https://www.scirra.com/manual/126/system-expressions

    edit - ok so I see LittleStain has beaten me to it again.

    edit 2 - and his answer is so much more informative than mine, don't you just hate some people ? <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    No, I don't hate anyone..

    Is that strange?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you want it to..

  • Haha, ok..

    Here I was thinking you had very specific reasons to avoid the scrollto behaviour and therefor were searching for a very complicated way to achieve an effect..

    I thought the scrollto behaviour was used so often in examples and tutorials, everybody knew it..

  • Why not just use the scrollto behaviour, or the system scrollto action?

    Than you could give the ship any kind of movement behaviour you want, just set the unbounded scrolling attribute of the layout to yes..

  • Change tickcount=0 to "on start of layout" to fix the Restart issue.

    Thanks, forgot about that part of his question..

    Changed it in the linked capx..

  • Not using the most beautiful method, but working..

    I was able to pick the first and the last link created by choosing their group and lowest and highest UID numbers, Using that to spawn the electricity on the right spot and setting the immovable attribute..

    Fixed Capx