slowing down a character in the back of a scene

  • #1, by rauleWednesday, 06. March 2013, 15:12 8 years ago
    hello,

    is there an easy way to slow down the speed of a character while he is going in the back of a scene?
    the only way i found was to use action areas. but this would be very costly, beacause i would have to create 5 to 6 areas for each scene.

    thx for any answer!

    best,

    Raul

    Newbie

    53 Posts


  • #2, by afrlmeWednesday, 06. March 2013, 16:05 8 years ago
    hmm it might be possible with lua by listening for characters position in relevance to the size of the scene then using some math & if else queries to determine character speed.

    an idea - can't say for sure without looking at the data structure & testing the game.

    another idea similar to the other would be basing speed depending on character scale size %.

    Imperator

    6842 Posts

  • #3, by mowrenWednesday, 06. March 2013, 17:54 8 years ago
    The walking speed is already reduced by the engine based on the current scaling of the character. If your character is big in the background you might need to set a slower speed with actionareas for this region.

    Newbie

    10 Posts

  • #4, by afrlmeWednesday, 06. March 2013, 18:01 8 years ago
    hmm might be a good idea to include a setting for this in the waypoint (scale part) system for allowing users to manually control walk speed for various scale points - if desired?

    Imperator

    6842 Posts

  • #5, by derOesiWednesday, 06. March 2013, 18:19 8 years ago
    The walking speed is already reduced by the engine based on the current scaling of the character. If your character is big in the background you might need to set a slower speed with actionareas for this region.


    i think he means the left-right speed of the character compared to his "into depth" speed. ?

    i overcame this (rather harsh) limitation by adding actions to the N,S,NE,NW directions which set a slower character speed. it works most of the time but i'd love to see a proper implementation of this fundamental "feature"....

    Newbie

    48 Posts

  • #6, by afrlmeWednesday, 06. March 2013, 18:28 8 years ago
    The walking speed is already reduced by the engine based on the current scaling of the character. If your character is big in the background you might need to set a slower speed with actionareas for this region.


    i think he means the left-right speed of the character compared to his "into depth" speed. ?

    i overcame this (rather harsh) limitation by adding actions to the N,S,NE,NW directions which set a slower character speed. it works most of the time but i'd love to see a proper implementation of this fundamental "feature"....


    what's the difference?

    but yeah you could control speed based on character direction as opposed to character scale I suppose.

    Imperator

    6842 Posts

  • #7, by afrlmeWednesday, 06. March 2013, 19:46 8 years ago
    https://www.visionaire-studio.net/forum/thread/walk-speed-de...

    something spacepaw scripted a while back - just found it in lua category while I was searching for something else! wink

    don't know if it works or how well as I haven't tried it - nor have I looked at the script!

    if you try it, then let us know if it works ok or not.

    Imperator

    6842 Posts

  • #8, by rauleWednesday, 06. March 2013, 21:01 8 years ago
    hi,

    thank you all for your answers.

    this community is awesome!

    it works a little bit better if im using more waypoints. then the engine reduces the speed on the current scaling of the character as mowren says. at the beginning i just had 3 waypoints in a straight line from the top (background) to the bottom (foreground). still its not really satisfying because as more waypoints i use as more "jumping" in the scaling of the character i got.

    looks like the lua-script from spacepaw is what im looking for, unfortunately i dont no nothing about lua.
    will be one of my next projects. i will let u know if it works. if someone trys it earlier then me, love to hear about it.

    thx again to you all

    Raule

    Newbie

    53 Posts

  • #9, by afrlmeWednesday, 06. March 2013, 22:08 8 years ago
    I may give it a go when I have some spare time & if I can improve on the script at all; then I will create a new version wink

    are you setting scale on each waypoint?
    it's much simpler - if you can get away with only setting scale on nearest point to screen & furthest point from screen.

    although I guess it depends on what your scene contains.

    Imperator

    6842 Posts

  • #10, by derOesiWednesday, 06. March 2013, 23:56 8 years ago

    what's the difference?

    but yeah you could control speed based on character direction as opposed to character scale I suppose.


    mhhh, i was under the impression that VIS didnt consider the depth automatically.... at least in my tests my character ran at the same speed in Y as in -X and +X.... (which works in a isometric world wink but my perspective is pretty low(Y) so i have a lot of depth) i've seen similar phenomenons in some sets of deponia1, at least i thought so...

    or maybe its my mouse button setup which sets the character speed for walking/running which causes my problem? (or was it added in 3.7? i did my test on 3.6)

    Newbie

    48 Posts

Write post