shirokuma's Forum Posts

  • So, instead of disabling the scroll to behavior I ended up creating a second sprite that has its X value set to the player's X value as long as the player is in a certain range.

  • You could set an event for the object you are scrolling to so that when it reaches a certain X or Y value you disable the scroll to behavior, and of course re-enable the scroll to when it gets back in an acceptable range.

  • Here you go. I created a global variable called mouseAngle that I calculate every tick. Then I have 4 events to see if the mouseAngle falls into the range for front, right, back, or left.

  • Dasat

    I think the length of the probe lines are not constant. If you place the meter in the lower left you can drag a probe to the upper right (and beyond). The length of the line seems longer to me.

    I think everything in hat Java app looks doable in C2. I think you are going to need to use something like this plugin to accomplish those lines.

    I haven't played around with this plugin too much, but it does have bezier curves, which is what I think you will need for those curved probe lines.

  • Try Construct 3

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

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

    I was just discussing vectors with a coworker (an actual programmer instead of a hack like me), and I can say it is possible to calculate a vector in the negative Y direction. In my example I intentionally avoided them thinking that you wouldn't need a negative Y vector because you are standing on a platform, so you can't go that direction. But I guess if you want to do something like that you could add some code that turns off the solidity of the platform you are standing on when you get a negative Y vector.

    I should warn you that my vector code isn't correct, so use at your own risk.

  • Well, here is a start. It still needs work, but I'd need to study some on vector mathematics before I could go farther.

  • Select the layout tab. In the properties panel there is a Layout properties called Event sheet. You can select a different event sheet there. (You have to make the new event sheet in the Projects window first)

  • Mazdakfx

    One more change. This one adds in your jump animation and makes sure the correct animation is playing at the start of a layout.

  • It works on a 1st Gen iPad using HTML5 Export...

  • With Touch there is a On touched object, so you can set that to the sprite you want to use as a button.

    Take a look at this:

  • Here you go:

    Mazdakfx

    You need to keep the player's Y value as well as his/her/it's velocity in X and Y.

  • Here you go:

  • Well... the concept seems to work.

    I stripped everything out and precisely placed things with numbers and the transitions seem seamless to me. See what you think.

  • So first off I would say you might want to change the:

    PLAYERBOX | On collision with SCROLLY

    to:

    PLAYERBOX | Is overlapping SCROLLY

    I believe that On collision with is only a single event, so you would only get one step out of the lerp expression. The Is overlapping will act like an every tick event as long as you are overlapping the object.

    Next I'm wondering if your statement:

    ...PLAYERBOX platform is moving = | lerp(CanvasToLayer(0...

    is a typo or not. Did you really mean to type:

    ...PLAYERBOX platform is moving = || System | Set Scroll Y to lerp(CanvasToLayer(0...

  • You can request your badge by forwarding your proof of Steam purchase to along with your forum account name.