Sargas's Forum Posts

  • well, ramones said it all

    cool addition: use "Zeropad" to add zeros in front of your number so it's always the same number of digits like speed "002" insted of just "2".

    it would go like this: zeropad(speed,3) <--- this would take the variable speed and display it with 3 digits.

  • the gamepad has a "if any button pressed" condition, then just invert it =P

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A wild guess. Did you set obstacles to custom on the properties of char1?

    I'm pretty sure I would be able to help you if I could take a look at the capx :D

  • V2

    you had several redundancies...

    The character took some time to start moving because the red square had to turn first =P

    scirra.com/arcade/action/6566/neon-one-export-went-wrong

    I want this removed from the arcade please :D

  • I'm pretty sure there must be a mathematical way to do this with a super advanced calculation. In the meantime; just use an animation. Specially since the calculation would only work on flat images, and anything representing volume would look super weird.

    here's how you'd do it EXAMPLE

  • the way i do this, is create a variable on the object to store it's own UID.

    on created set variable to "Self.UID"

    so when Variable = specific number; then action occurs.

    hope this is what you needed =)

  • well... i feel really stupid, all i was doing wrong was the way a picked the carts. I had them in a family and all, but in the actions i should have used it and i was referencing the instance instead...

    silly me...

  • well... when a train moves, it does as a whole (like my train along the tracks), but when it reaches it's destination it also stops as a whole (which mine doesn't,in my case each carts has to reach the destination before turning around). but because of the way my train works (moving from node to node) i can't just pin it together, or it would look all sorts of wrong, and won't work, please try it and you'll see.

    maybe there is an alternative solution for the "moving along the tracks" thing that didn't occur to me. i couldn't make it work with pathfinding, so i had to make it with a self made movement.

    any solutions for this would be really appreciated. i'm kinda stuck with this =(

  • that wouldn't work, the train needs to stay on track and change the track of each cart independently =(

    I guess is something along the lines of using a variable to determine which side the train should be moving to.

  • CAPX

    Hello guys!

    I made this capx where you create 2 train stations (wherever you want) and the tracks are dynamically set between them. then you can create a train that follows the track and change angle depending on the angle of the segment they're on.

    however i don't know how to make the whole train change side when reaching a station instead of every car turning when reaching the station. My trains behaves like 3 independent carts and not as a connected train =(

    i've been trying to solve this for over a week now, any help? :D

  • you can also

    random(10,20)

    if you want, for example, random a number between 10 and 20 =P

    also. read the manual xD

  • read the manual, it explains how to pick gamepads by index.

    always read the manual first

  • doesn't the "pick by highest/lowest value" action already do this?

  • ramones solution is what i would have suggested as well

    Solid disables if obstacle is overlapping grid :D

    (always regenerate obstacle map after you change something)

    so, actually whats dynamic is not the bridge, but the obstacles =)