Zathan's Recent Forum Activity

  • I assume you are talking about the properties. Set the properties you can, then set the variable ones in code, with the LiteTween Actions.

    Hehe you are right! I discovered how to do this..

    The behavior have the action 'create/initialize tween', that is what I always use, along with the 'start' action.

    The problem is that inside this 'create' action, you can't enter variables or expression on the target box.. you have to create a separeted target action.

    Why? I really don't know hehe

  • Well I would need to know what you are loading.

    For the canvas, you take the progress and turn it into an angle.

    An overly simplified version coincidentally:

    Hehe this effect is very cool, I think it would do!

    About the canvas plugin thing, the loading stuff I know how to do, my problem is in putting the canvas plugin to work, the draws, etc.

    If it's not asking too much, bcause you're helping me a lot already, can you show me a capx or something with the plugin doing the circle animation?

  • LiteTween has Actions to change any of the settings you want.

    But how? when i'm putting the scale that I want for the object, I'm just allowed to enter numbers, and not expressions or variables.

  • newt

    Hey, I'm really sorry to bother you again :

    I couldn't make it.. I really don't got it. Tried to make some things with the canvas plugin, but nothing works.

    I looked for tutorials too, but don't found any.. can you help me with this circular animation using canvas?

  • Well, i have this object that can grow to a random size. But I want it to be smooth, so i'm using litetween for the scaling.

    But litetween UNFORTUNATELY doesn't allow to use variables or expressions... I don't know why. This behavior is magic, but have this problem.. :

    So, there is a way to achieve what I want with litetween?

  • newt

    Hmm.. interesting.

    Can you teach me how to achieve that with canvas plugin?

    I downloaded the plugin today to take a look.

  • There is a way in C2 to make something like this?

    Ps: my doubt is about doing something like this without animation, just with events.

  • I think that if you want to prototype something first in C2, you should aim to use an engine like Unity to make the official project.

    Prototype something in C2 to make it in Game Maker seems like a waste of time... both engines are made to 'simplify' the game making task.

    If you like GM, just grab it and go for it.

  • Set the Cam shake to: clamp(190/distance(Char.X,Char.Y,Object.X,Object.Y),5,1) shouId work I guess. You need to divide the shake factor at distance 1 (190) by the distance. When in doubt, check the math in excel.

    Wow, that's it!

    Thank you very much

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If the object is not on screen, there is no shake. But if it is, start a cam shake that will growing as the char moves closer to this object.

    I have this math that I'm using in the cam:

    If 'Object' is on screen,

    Set the Cam shake to: clamp(distance(Char.X,Char.Y,Object.X,Object.Y)/190,5,1)

    It works, but is inverted. When the object is closer to the Char, the shaking magnitude is 1 instead of 5.

    How can I invert this?

  • You are welcome!

    An important note is that maybe there are best ways to achieve similar results. So, you can mess with the code and improve it!

    What I did here is setting a random X and Y location every random amount of time. This location is stored in the two variables and is based on the window size, so the footsteps will never get lost beyond the screen.

    The amount of time you can configure to fit better your project.

    Another important thing is know exactly what you want when the random time is reached and a new location is setted.

    In this case, I wanted that the footsteps turn slowly to the location.

    So, in addition to being always moving forward, the footsteps will, with the lerp action, always turn to the specified X and Y in the screen.

    Edit: Oh, I forgot.. the new location is setted when the timer reaches it's limit, but when the distance between the actual location and the footsteps is less than 30 too. This way, the footsteps will never be stopped.

  • Something like this?

    https://onedrive.live.com/?authkey=%21A ... ion=locate

    If you have any question, just ask it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

Zathan's avatar

Zathan

Member since 1 Jul, 2012

None one is following Zathan yet!

Trophy Case

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

Progress

16/44
How to earn trophies