LittleStain's Forum Posts

  • You do not have permission to view this post

  • Just a few quick remarks:

    You do have the system is in preview event setting level_value to 0, which resets the instance variable when in preview..

    also sprite18 is not global so the instance variable on sprite18 in your world map is not even set as far as I can see..

    If it were set you probably wouldn't see because "guy" isn't on screen when at the desired coordinates..

    And if it all were working "guy" couldn't be moved for it's position would be set every tick..

  • Is the player global?

    Are there any other events setting the players position?

    are there any other events changing the level value?

    Is there an event sheet attached to the Over-World Layout?

    It would probably be a lot easier to solve if you shared your capx or made another one showing only this issue for us to take a look at..

  • I'm sorry, but I don't understand the question..

    Could you try explaining what you want in a better way?

  • By adding the function object?

  • There's also quite few examples here, that lot of people seems to not know about

    c:\Program Files\Construct 2\examples\Touch - zooming.capx

    That's the one I mean..

    You can also get to it through the new project (select template or example)

  • Hi. Its old but I did not find another up to date Topic about it so I hope its ok to "revive" it.

    Does anyone have a working example of zooming in/out with a 2 finger gesture without plugins? (does the old plugin still work?)

    I think this is possible with the nth Touch Actions so Construct knows there are 2 fingers touching.

    Doesn't the touch-zooming example from the new project dialog work as intended?

  • Should all be possible, with a bit of trial and error..

    You could make the line of sight behaviour spot the intersection stop line sprite and when the light is red decellarate the car to stop before it..

    On collision with the intersection stop line sprite you could choose which direction the car will turn and add the events to do so (which would probably be a bit different depending on the car-speed)

    Adding events with conditions for when the bicycle is within the path of the car should also be possible..

    It will take a lot of work though, especially using the car behaviour for the movement..

    You might be better of creating your own movement with the custom movement behaviour..

  • Even though korbaach beat me to it..

    Complete SpriteFall

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm guessing the hat is set to global..

    Using the persist behaviour probably would be better..

  • Or simpler based on LittleStain answer :

    This is a question of comparison sign.

    As long as the object is less (and ONLY less) than the desired size, you make it bigger.

    Once it is bigger (and ONLY bigger) than the desired size, you set it at the desired size.

    Without the "or equal" in your comparison, you're making sure the logic works as intended.

    You are also making sure that as long as the size is less than the desired size, the object will get bigger. The moment the size is reached, it won't grow anymore.

    And you are also making sure that it will be bigger than the desired size only once, since the moment it happens, you set it to the desired size which no event/condition actually acts on anymore.

    Replace 80 with any value, and it will work, as long as it is consistent in both events.

    Yeah, that's better..

    Sometimes I just want it to work and don't bother finding the easiest way, haha..

  • > looking at it again you'll probably want width>400 since by subtracting from the width it should be shrinking.

    >

    here is what i want exactly

    but as i told you always stop at different value

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

    One way of solving it:

    https://dl.dropboxusercontent.com/u/485 ... egrow.capx

  • One of the many examples of picking up guns to be found by using the search function..

  • Could you explain what you want to do rather than what you are doing?

    Possibly a repeat x times, or using a loop will solve your issue, but it's not clear when and how you'd like the objects to be created..