Raganork's Forum Posts

  • I have made a game which uses physics. There are many objects used in a layout and some big background images. I am aware of optimization tips and followed the document about optimization very closely. Total memory in use is about 17mb and Approx download size is 8mb. Still my game lags in mobile devices, even in iPad. is there something else missed.

    P.S.- I already compromised on the BG and cant go any further. Bg's are used of size 960x540.

    Please help. I am stuck.

  • Go to Project properties and set the 'Full Screen in Browser' property of 'Scale Inner'. But make sure your game is more screen center based.

  • blackhornet: I don't know if this is a bug or need to take notice of. Anyways, here is what I found.

    If in the text field, where we fill characters to be converted, if a character get repeated, in generated sprite font, repeated character(s) are not counted, but the text file which is produced along with this (which have info about the sprite font), the character set still shows the text which we entered (having repeated characters), This character set text is required in Constuct2,

    I am making a game with localization options, and I have inserted all the words (characters) in the software to make one single sprite font, but I can't copy paste the character set from the info file. Since there are many characters, i cant make sure to have no repeated characters, and there are some characters which i can't read (like chinese).

    If I am missing something, please help me, otherwise please fix this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • But it still leaves black bar on the sides. I don't want the black bars. I want something which will 'stretch' my game to the browser size. More like Scale inner, but not cut some parts of the game. hope you got the point.

  • But it still leaves black bar on the sides. I don't want the black bars. I want something which will 'stretch' my game to the browser size. More like Scale inner, but not cut some parts of the game. hope you got the point.

  • Hi, For my last game, I used fullscreen mode to scale inner, and it worked by properly scaling the game to full screen. But in my current game, I have player moving from one corner to other corner (in a city). But I cant use Scale inner as it is cutting some part of the game in some resolutions. How can I solve this problem. I can't cut down my city.

    Anyone please help. Otherwise I am doomed.

  • I have made a custom loading bar for my project in a separate layout. Everything is working right, but the issue is, it itself appears very late, something after 70% of overall progress. I used tiled background and only a small sprite which stretch as loading bar.

    Where am I doing wrong ??

  • Can anyone help me with this 'Splash screen' stuff ?? I have understood everything except this one (in terms of integrating it).

  • matrixreal: Thanx for the tip. I will keep that in mind.

    About next point, my mistake, it is 'viewport' tag, and not 'viewpoint'..

    I was searching the web for my issue and i found this tag. I posted the link below. It will help you understand better than I can.

    developer.mozilla.org/en/docs/M ... t_meta_tag

    EDIT: well, looks like I can't post link. If you could just search 'html5 viewport tag' in google, you will get more info. Above link is the first link from the search.

  • 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.