Raganork's Recent Forum Activity

  • Thanks guys... The thing I noticed that the lag is coming only on browser but not mobile browser.. Any guesses here??

    I have made 2-3 games before this, but didn't faced this issue (they were very small games though).

    zenox98: Thanx.. So stupid I am, this slipped out of my mind completely, even though it was right in front of me.. thanx for reminding me of that.

    matrixreal: I have read that I am following it closely, Not even once I am using Every Tick event and so on.. Thanx for the comment..

    Well, completely off-topic question here.. I am currently using Scale inner for scaling issue, But I just read somewhere that there is a tag called viewpoint in html5 which scale the game screen to mobile screen size, and hence no need of scale inner scaling. But it is not working in my project. Am I missing something ??

  • I have created a small game where user have to park a car over a parking spot. I have used same layout for levels and used to create objects using events depending on level number. But after I play few levels (like 4-5), my game starts lagging. If I still go on playing, it lags by almost double. Where can be the problem ?

  • Raganork Beside using a second car or using a dummy image, there is no sollution as far as I know. Its because of the way the Physics works and is build into Construct. When changing the image some things gets recalculated/changed/updated and the physics break apart.

    And if you read the [issues] mark at the main post, I explain that there is no way for me to catch a rebuild call.

    Maybe in the far future when I have time to work on my plugin/behaviour projects again, maybe I can find a sollution. But that will not happen in the next coming years. All plugins/behaviours are open source, so if you know your way around javascript, you can always try to improve the behaviour yourself.

    CodeMasterMike: Hey.. guess what ? I succeed in finding a workaround.

    What I did is, instead of keeping the body on layout, i created it on run-time. And succeed in using two different cars for two levels. It's maybe not a proper solution, but will work for me. So, I thought to share it for others facing same problem.

    Her's the link to capx for reference- goo.gl/uNcDVW

  • Raganork Yes, I tried it to now, and it didn't work. Most probably because the collision box gets changed or something like that.

    You could also try to have a dummy image above your car image, which is just a image without any collisions. So that this dummy image overlaps the car image. And set the dummy image as a child of the car. That way you dont need to mess with the car physics or its image at all.

    Idea is good, but what is the dummy image size is less than original image, or some part coming out, it will not look good. There should be a solution.

  • Hello,

    I am using car behaviour on the car object in my game. The issue is the damping of speed is very low. The friction on car is set to max but still the damping of speed is not as much as I want. How can increase the damping ?

    Thank you

  • Raganork

    Easiest way I can think of at the moment, is to set a image of one car as a animation frame, so you'll have 2 different frames with 2 different images, and then when you want to switch image, you change the current animation frame. But there is surely other and better ways to do it.

    I did the same, but that is causing the problem. Can't change the sprite. I am not getting why just changing the sprite is causing the problem.

  • Raganork Its not possible to change object like that in realtime, due to the way the physics works. Either use a physics on each car or change the image of the car with the physics instead.

    How can I change the image of car with the physics ? I want my car to be ready as soon as that layout gets load.

  • I have used Car physics behaviour (link- scirra.com/forum/behavior-car-physics_t69925 ) to make a top-down car game, But I am stuck at a point.

    My game have 2-3 cars.So instead of making different objects, I just changed the sprite of body to different one, ( they both have same size). But as soon as I change it, the wheels are coming out to the sides. I have tried many things, like disabling collision etc. but none is success. Can anyone please help me.

    Thanx in advance.

  • I have used this to make a top-down car game, But I am stuck at a point.

    My game have 2-3 cars.So instead of making 2 different objects, I just changed the sprite of body to different one, ( they both have same size). But as soon as I change it, the wheels coming out to the sides. I have tried many things, disabling collision etc. but none is success. Can anyone please help me.

    Thanx in advance.

  • okay. Thank you very much. It worked perfectly. Saved lots of repetitive images. Thanx again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Vuuv: Thanx for the quick reply. I assigned the instance variable (number) for each image. But how can I access that variable ?

  • I want to use an image multiple times in same layout. Each image will act independently and pressing a image will do a different action. Currently, if i change name of an instance, it changes name of all other images as well.

    I also tried to put all images in an animation and each image is at particular animation frame. But the mouse/touch not detecting the image frame. Is there a way to do this ?

    Thanx in advance.

Raganork's avatar

Raganork

Member since 20 Nov, 2013

None one is following Raganork yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies