MPPlantOfficial's Recent Forum Activity

  • Talking about all the different game modes - have you seen this (perhaps it was an inspiration?):

    Multibowl

    Subscribe to Construct videos now

    (with pretty funny commentary)

    That right there is a perfect example of "Gimmick: The Game."

    I think if you're gonna do a Frankenmashup game then either:

    -Use different assets but keep the same rules/physics per level (Abobo's Big Adventure)

    -Different mechanics per level with the same art style. (Dumb Ways to Die)

    Pick one, not BOTH. I'm not a fan of the aforementioned games and especially not of a game that changes both art style AND gameplay every 2 seconds without at least giving you a chance to learn the rules. But that's just me.

  • Object(0) selects the first instance of the object.

    Object( Object.Count - 1) selects the last instance of the object.

  • I don't completely understand your problem but from what I can tell you want the camera to maintain a relative Y distance to the player?

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

    Could you check this capx if this is what you mean?

  • Gotcha, so that's done ... but the scroll when the player leaves the "camera" box is very jerky regardless of which number I use.

    Hmmm.... Then maybe you should decide on a different position for the camera box and not use that:

    "camera x is overlapping player" statement. I can imagine the Y component of the camera is constantly catching up and re-centering.

    Try : Set Camera.Y to PlayerAnimations.Y - 200 (or the distance you're comfortable with) or something. Only the X component has that "catching up" effect and the Y is constant.

  • sprite

    Yes now all you have to do is invert the 2nd statement just like last example.

  • However when the player leaves the "camera" box because they are not overlapping it anymore, the screen jumps to the players position very sharply. How do I smooth this out?

    Well it gets that instant jumping into position because you are setting it PlayerAnimations.

    Use LERP to get that that "camera catching up to player" effect.

    Every Tick | Box set X to lerp(Self.X,PlayerAnimations.X, 0.5)

    x Is overlapping PlayerAnimations | Box set Y to lerp(Self.y,PlayerAnimations.Y, 0.5)

    You can increase or decrease the scroll speed by replacing the 3rd element of the lerp which in the example above is the 0.5 quantity.

    Try replacing it with 0.2-0.9 and see what best fits your needs.

  • The player animations sprite has the scroll to behaviour, however when the player jumps it also scrolls up and down as it follows the player completely. I'd like the camera to follow the player horizontally, and only move vertically when they go outside of a defined zone.

    That's why you should put the SCROLL_TO behavior on a separate invisible box so you have complete control over it.

    Of course you wouldn't be able to have the degree of control you want if you put it on the Player itself.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well for the rest of the game just create a box that has the SCROLL TO behavior and at all times set its position to the torso of your Player sprite.

    But for:

    Where X enters the door, you have to move both your player and the box. The box moves to the center of the room slightly faster than the player and the player's animation as well as physics is halted for a while. It's all about dividing all motion into subcomponents.

  • Hey Josek, are you planning to make plugin for the newly announced Admob Rewarded Video?

  • Physics.

    While stretching your rubber band, just do :

    every X seconds | Projectile spawn Balls

    Give the balls a Hang_Time instance variable

    Every tick :

    | Set Balls X to [Equation] x(t) = x0 + v0xt

    | Set Balls Y to [Equation] y(t) = y0 + v0yt – ½gt2 (Btw, You need to modify this to negative since Y axis is reversed in C2 )

    | Balls Hang_Time + dt

    Here's some additional reading:

    http://scipp.ucsc.edu/outreach/04Projec ... Motion.pdf

    https://www.maplesoft.com/content/Engin ... Motion.pdf

  • :twisted: I have 100 of that sprite and i wanna check the distance of all of them with each other, so if the distance of one of the instances is less than 50 with another instance something happens to them.

    How can i do the above scenario?

    Loop each instance to detect distance w/ respect to other instances.

    Look at how loops work first.

  • For the walking animations, add "is on ground" as an additional condition.

MPPlantOfficial's avatar

MPPlantOfficial

Member since 17 Feb, 2016

Twitter
MPPlantOfficial has 1 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies