How Do I Increase The Speed Of The Scenes?

Discussion in 'How Can I...?' started by spacerain, Jul 31, 2017.

  1. spacerain

    spacerain Boxer

    Joined:
    Dec 4, 2016
    Messages:
    42
    Likes Received:
    6
    I'm working on an avoidance-style game where the player can only move the character horizontally, and the game is always moving vertically. How do I make the vertical scrolling faster? What are the exact steps?
     
  2. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    You must use Force Movement,if you click on your world, you will see some settings, down in that settings area you will see Add Component, then add Force Movement,play with it and see what it's going on.
     
    Christoph likes this.
  3. spacerain

    spacerain Boxer

    Joined:
    Dec 4, 2016
    Messages:
    42
    Likes Received:
    6
    That did it, thanks.
     
    blad300 likes this.
  4. Rameo

    Rameo Boxer

    Joined:
    Mar 22, 2020
    Messages:
    21
    Likes Received:
    1
    Scene speed increase by point or distance like T_rex dino game like Chrome.

    How it will be implemented?
     
  5. Smart Penguins

    Smart Penguins Boxer

    Joined:
    Jan 2, 2020
    Messages:
    62
    Likes Received:
    70
    The Move Node has that option, Speed %
    Screen Shot 2020-03-30 at 4.54.30 PM.png
     
    Rameo likes this.
  6. Rameo

    Rameo Boxer

    Joined:
    Mar 22, 2020
    Messages:
    21
    Likes Received:
    1
    Thank You for reply. I already tried this too many times but it will not effective for T-Rex like game scene speed.
     
  7. Smart Penguins

    Smart Penguins Boxer

    Joined:
    Jan 2, 2020
    Messages:
    62
    Likes Received:
    70
    Not sure what you mean, I've used it in my T-Rex game:
     
  8. ConnyH

    ConnyH Boxer

    Joined:
    Apr 1, 2020
    Messages:
    6
    Likes Received:
    0
    I am working on a game based on the twisted road template, it uses the path move node, I would like to increase the speed of the character after a couple seconds, how can I do that?
     
  9. Smart Penguins

    Smart Penguins Boxer

    Joined:
    Jan 2, 2020
    Messages:
    62
    Likes Received:
    70
    Use the new Path Move node and replace this code:
    Code:
    function update(dt) {
        if (!enabled) return;
    with:

    Code:
    function update(dt) {
        speed=speed+10*dt;
        if (!enabled) return;
        if(speed>30){
            speed=30;
        }
        this.scene().setSpeed(speed);
    10 is the acceleration - 10m/s^2
    30 is the max speed - 30m/s
    replace with the value that you want.
     
  10. ConnyH

    ConnyH Boxer

    Joined:
    Apr 1, 2020
    Messages:
    6
    Likes Received:
    0
    Thanks, but now I had to decrease the speed from 10 to 1 and increase the acceleration by 2, or it is way too fast, which is not much of a problem, however I am not able to move the character side to side anymore, only the trails moves and the character remains in the center of the path
     
  11. Smart Penguins

    Smart Penguins Boxer

    Joined:
    Jan 2, 2020
    Messages:
    62
    Likes Received:
    70
    Yes, I wrote "replace with the value that you want."
    For moving side to side use the attribute "Position On Path", -1 for one and 1 for another one, or whatever position you want.
     
  12. kipasgajah

    kipasgajah Boxer

    Joined:
    Oct 5, 2015
    Messages:
    24
    Likes Received:
    10
    hi, do you know how to increase the path move?
     
  13. BoxBoyZBradley

    BoxBoyZBradley Boxer

    Joined:
    May 4, 2020
    Messages:
    6
    Likes Received:
    0
    @Smart Penguins
    Some help with this would be awesome. I tried this using this code as you specified above

    function update(dt) {
    speed=speed+10*dt;
    if (!enabled) return;
    if(speed>30){
    speed=30;
    }
    this.scene().setSpeed(speed);

    but my character went all over the place....

    I tried putting the last line in place of a similar line under function signal ()... same results....

    Save me! :)
     

Share This Page