part12studios's Recent Forum Activity

  • I'll check that out as well! That could be helpful.. but since the last post i made earlier, I tried to forge ahead with LERP and this is what I came up with. It's an old post because I was having internet trouble earlier before relocating.

    LittleStain, one other quick question with LERP. It seems like everything I do is very snappy.. very fast.. is there a way i can make the lerp transition/interpolation much slower?

    dropbox.com/s/vn7i0l81md6hvs3/LerpTest1.capx.zip project file

    part12studios.com/temp/Lerp

    click the blue box to make it move to the next location.. see how it jumps? I'd like to ease that to be much much slower.

    Thanks!

    Caleb

  • yea I really like the idea of using lerp because i really just want to say move HERE and give it an X and Y value and be done with it.

    Relying on colliders to trigger events does sound like a great idea like in the case of the platformer for sure. I have used similar approaches with GameSalad, but interpolating with easing is something that is also equally helpful

    Thanks for the great advise and feedback!

  • ok awesome that worked great! I get it now and got it working similar to how you suggested! Yea I just hadn't noticed the animation options until you clearly pointed them out. Thanks a bunch for your help on this. This opens up a lot of other fun possibilities :)

  • LittleStain, Ok I was able to make that expression work so yea that's very cool. I'll see what I can do with that now that i've seen it work.

    VictoryX that is a way to do it and that does give me some ideas, but it wouldn't allow me to slow down the object as it approaches the edge to trigger a turn around event.

  • oh wow that's so cool that you can just plug in objects names like that LittleStain! i love it.

    i don't know if I understand how to do that "on end". where would I access that event? I don't recall seeing that anywhere I've been in but maybe i'm looking in the wrong place?

    thanks!

    Caleb

  • ok i'll search around for it.   I've never come across a behavior called that.   thanks for the tip! :)

  • yea that does do the trick, but what about interpolating to specific locations?   this is a great simulation for the fishtank for sure, but i feel like this doesn't offer a lot of control.

    another situation that i though would be related to this was if i wanted to have the fish move over to one side and stop.. then maybe in a given condition, then move to another spot with easing in/out.

    I did apply the sign suggestion and it worked well, but i was wanting to have a little more control over other situations.

    Thanks!

    Caleb

  • I have this animal that I want to blink it's eyes but only randomly. I'd like it to be seamless so it seems like maybe if there were some "on completion of animation" event i could randomly pick a number after each the main idle animation complete and if the number is a certain number, then it would play that other animation and when that completes, random again.. over and over.

    I just don't see how i can achieve that looking at an objects animation options. Any suggestions?

    Thanks!

    Caleb

  • Hi there,

    I have an object that I want to animate statically. I have a fish in a fishbowl that needs to swim to the left and to the right and back and forth for ever.

    Ideally it would be great to have him randomly drift up and down a little as well as left and right.. but most important is just knowing how to script an object to be able to go to a specific x/y coordinate and back to another. I think I can manage the flipping logic and all that.. its really just about how to tell

    My instinct was to use bullet, but that just wants go at a fixed speed and not care about location. I would really love to be able to use easing.. in and out.. so the fish isn't just moving at a fixed speed, but rather speeding up and slowing down as it turns around going back the other way.

    Thanks!

    Caleb

  • awesome thanks JJList and everyone for your input. This is great. I just know that offset/dragging will be something I need to use and this is a much more efficient way to achieve this effect

    Thanks!

    Caleb

  • LittleStain i follow this, but "object is picked". I can't find an action that matches that.

    my attempt failed to result in a proper drag and i imagine the object is picked part is a big piece of it

    dropbox.com/s/ih8hjpukbmzy96f/TD_Test_4.capx

    Thanks!

    Caleb

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi there, I was trying to figure out a way to do a drag / offset so when i drag something it doesn't snap to center.

    I found this thread scirra.com/forum/no-offset-drag-and-drop_topic47745.html but following the one available capx, it didn't work when I tried to reproduce it and all the while it struck me as oddly complicated to achieve the desired result.

    Of course the capx out there works great, but when I tried to replicate it, it failed, but it was kinda complicated so I couldn't understand the need for having additional instance variables "mangle"? "mdist"? i don't understand what those names mean related to the offset..

    I see the drag/drop behavior but it doesn't seem to address the idea of mouse offset.

    So yea I just wanted to see if there was some straight forward approach to allow you to touch the lower corner of a dragable object and not have it snap to center but rather let you drag it from where you touch the object.

    Thanks!

    Caleb

part12studios's avatar

part12studios

Early Adopter

Member since 24 Dec, 2012

Twitter
part12studios has 1 followers

Connect with part12studios

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

19/44
How to earn trophies