MPPlantOfficial's Recent Forum Activity

  • A

    Also to explain why I used that:

    Chain.index is the order of the objects in the chain. 0 on one end up to say 10 on the other.

    Used with "for each ordered" it will loop over the objects from one end to the other.

    Hi guys I'm sorry to be revisiting this yet again but would you happen to know a way to create new chain links?

    The loop seems to be [for each chain order] using the family.

    I'm going to assume The order would be something like: Dot A Link 1,2,3...Link2-Dot B

    Newly spawned links seem to stick to the current active Dot and produce a weird effect. How do I spawn a link such that it sequences itself in between all link and link2?

  • Here. Use Skullgirls and Darkstalkers to inspire you:

  • Create global variable: IS_PAUSED.

    IS_PAUSED = 0

    Put All in-game events under this

    Pause button is pressed | Set IS_PAUSED = 1

  • A ? B : C is called ternary operator.

    It basically means "if A is true, then B, else C"

    I see. Thanks for explaining.

    For each chain ordered chain.index*dir

    --- do stuff

    For each chain ordered chain.index*-dir

    --- do stuff

    I used equations to cram it all together. It probably would be more readable utilizing functions. Maybe.

    Nice! I'm learning new stuff everyday!

    I was actually going for that approach as well however I did not know how I would be positioning the chainlinks for the second loop using their second image points as reference points.

    Thanks again, guys!

  • Fixed end version. Basically pulls one way, minus the last, then pulls the other way.

    https://www.dropbox.com/s/ecjsc9mmn509i ... .capx?dl=1

    Excellent capxs guys.

    I don't know what's happening here:

    chain.index*(loopindex("i")?-dir:dir)

    particularly the ("i")?-dir:dir part but I'm gonna study this example.

    It's impressive how you managed to do it without a second image point for the links as well.

  • Basically think of Chain Chomps from Mario / Zelda WITHOUT the gravity.

    As you can see, each link follows the head but stays grounded on the opposite end.

    If this is a nightmare to program now, how much more back then? XD

  • Sorry, I didn't modify your capx, it's too complex.

    Oh I forgot to specify.

    I actually wanted one end to be grounded while the other one moves. That was the challenging part.

    I imagine it'll take something like 2 loops constantly following the moving chain while the "grounded" end "tugs back" at the same rate when max distance is exceeded.

    Speaking of which, I could start there:

    RedBox/Greenbox is dragging

    Distance Bar greater than or equal to [cumulative lengths of all chain links] | [some code to keep opposite box grounded.]

    This was my initial struggle

  • Here is what I came up with:

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

    The code is quite dirty and can be optimized, but I hope you find it helpful.

    Gold! Sorry didn't reply earlier. I haven't gotten the chance to check back immediately.

    Thanks again! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is something I still haven't figured out after a year.

    R0J0hound do you mind taking a look at my Capx?

    I have a problem getting the links of the chain to link at the opposite end.

    I've tried revolute joints but this isn't really a capx that needs physics.

    Capx: https://www.dropbox.com/s/4zaon4bgge5s1 ... .capx?dl=0

  • What about giving each object a "Bullet" function reactionary.

    Every tick > Set Object.Bullet.Angle to -angle(self.x,self.y,char.x,char.y)

    For each object

    If dist(self.x,self.y,char.x,char.y) > mindist

    Set Object.Bullet to enabled

    else

    Set Object.Bullet to disabled

  • ...

    Yeah! This is pretty good. It doesn't have the jumpy effect like when I try to combine sine + displacement every tick.

    Thanks a lot!

  • Hi guys. I want to create sort of a "WHITE NOISE" effect with the lines of my sprite.

    In the capx below are my attempts at creating that effect on sprites.

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

    FACE 1 is the base animation of each face

    FACE 2 uses controlled double sine to simulate shaking effect. can be moved using WASD

    FACE 3 uses REX'S SHAKE PLUGIN. can be moved using UDLR

    Now as you can see in both picture and CAPX, the white noise simulation looks better on FACE_2.

    However it cannot be smoothly implemented as setting its position relative to a point every tick results in it not moving at all so I'm forced to set FACE_2 position every X seconds and this results in a pretty bad, Atari-looking displacement.

    Basically, I want FACE_3's shaking along a point but with less intensity that what it currently has. Is there a separate effect for shaking where you can control the parameters of the the shake? What other solutions would you suggest?

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