Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9015775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:50:03+00:00 2026-06-16T03:50:03+00:00

As i am working on top view racing game in which am trying to

  • 0

As i am working on top view racing game in which am trying to add slow motion effect when a car hits objects. I have tried with decreasing Stage.frameRate but the game appears lagging. and i have also tried with online tutorial called touch my pixel ( ref : http://blog.touchmypixel.com/2009/12/box2d-contactpoint-filtering/ ). But i didn’t understand.

Is there any solution for showing such kind of slow motion effect. can anybody help me in this regard

Thanks and regards,

Chandrasekhar

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:50:05+00:00Added an answer on June 16, 2026 at 3:50 am

    Easiest way would be to have a global modifier property somewhere which can be used to multiply the movement of everything in the game.

    For example, you could have the property speedModifier default to 1.

    public var speedModifier:Number = 1;
    

    And whenever you apply velocities, just multiply by the modifier:

    body.SetLinearVelocity( new b2Vec2(x * speedModifier, y * speedModifier) );
    

    This way all you need to do to half the speed of the game is to half the modifier:

    speedModifier = 0.5;
    

    To keep your code tidier and make managing this component of your game easier, there is probably a straightforward way to iterate over all of the bodies within the Box2D world and modify their velocities at the top of each update step. Something along the lines of:

    for each(var i:b2Body in world.GetBodyList())
    {
        var currentVel:b2Vec2 = i.GetLinearVelocity();
    
        var newVel:b2Vec2 = new b2Vec2(
            currentVel.x * speedModifier,
            currentVel.y * speedModifier
        );
    
        i.SetLinearVelocity( newVel );
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a top-down view 2d game at the moment and I
I have pagination on my view which is working fine if i am clicking
I am trying to add a new view to a working nav controller app.
I have a car moving around an elliptical track on OpenGL. The top-down view
I'm trying to add a couple of radiobuttons at the top of a View
So I am working on a game, essentially, its a top down view of
Working on game where plates will be falling from top to bottom. Some plates
I'm working on an image processing application where I have two threads on top
I am working on an iphone app. I have eight tables in a view
i am working on an app that has an image view at the top,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.