tomhaiger's Forum Posts

  • Thanks for the replies, i've tried the power of 2 for my background but my background sizes are a bit awkward, as i have 4 different sprites for my background working as a parallex. Each one of these has a width of 960 but different heights (my game layout is 960,540). This could seem a little confusing so rather than attempt to try explain, i'll just post a capx.

    With this capx, i've stripped my game down completely. I've changed the sprites from my game to random ones i've found on the net. This is more or less my game but i've taken some things out, but the main parts such as platform movement etc are there. I've actually left the sizes of the sprites so that its as similar as my actual capx as it can get.

    Would be grateful for any help.

  • I can't as i mentioned in the first post that the file is too big for me to post it here. I can send it via email if thats OK?

  • EyezWidee , matrixreal . Thanks for the replies, I'll take what you've said on board.

    I've read the manuals and tried to incorporate those tips into my game, to be honest most of the things you've guys suggested i have done so (i think). I do however have some images bigger than 512x512 for my background, i've tried using a smaller image size but it doesn't come out right so i left those.

    I'm thinking it may be something with my event sheets which could be improved which is why i've asked for help. If you guys are willing to take a look at my capx and see if there are any issues, then that would be great.

  • Just joined Skype, probably be easier that way. Have no idea it works yet

    I've sent you a contact request and i'll send the file soon.

    Thanks again.

  • Cheers mate, appreciate it. What I've done with my capx is change the sprites with ones from the internet rather than coloured shapes just for this as I wanted it as similar to my actual capx as possible with regards to character animation, just in case there's something with that that needs improving.

    I don't have Skype though and have no idea if I can still send to your Skype somehow. Do you mind if I send it via email if you don't mind providing your email address?

  • I've got some lagging issues with my autorunner game when I'm testing on my phone. I've used both Ludei and Crosswalk and I get issues with both. The game is still playable but the lag is an issue as it's noticeable.

    I was hoping someone would be willing to take a look at the events in my capx and help me with this lag issue. I'm still learning so I would be grateful if someone more experienced could tell me where I'm going wrong or what I can improve.

    I can't post my capx here as the capx file is too big and I don't think I can PM as my reputation needs to be 500, but I could email it if anyone is willing.

    I'm nearly done with my game so it's annoying I've got this problem

    I know it may be a bit much to ask but hope someone can help.

  • [quote:3kanfzqj]on your line 14, try:

    Set X to Self.X+Player.Platform.MaxSpeed/fps*dt

    This didn't work for me, nothing changed.

    [quote:3kanfzqj]Suggestion for line3:

    click Line3 then press B button, then put in:

    Code: Select all

    Condition: Player X not equal 105

    Action: Set Player.X to lerp(player.x,105,0.5)

    This will restore player to x=105 while on floor.

    This does work, although the player still jitters when falling, but i guess i'll have to live with it

    One issue though.... Remember in the 1st post where i mentioned the glitch about falling/running through the platforms? I get that problem when i test my game out on the phone via CocoonJS Launcher.

    This issue doesn't happen that often on the PC, but i have seen it do it a couple of times on Chrome but when testing on CocoonJS Launcher, it happens often enough.

    So now i have that problem to deal with, any help with this?

  • At least we can agree that the issue is there.

    I've tried modifying that line but no luck but i'm still a beginner so thats not saying much Do you have any suggestions on how to fix this?

  • Windows 7 Ultimate 64 bit

    i7 860 2.80GHZ

    8GB DDR3 RAM

    I tested it on Google Chrome

    I doubt its my PC performance and also the same thing happens when i test it on CocoonJS Launcher.

    Just to make sure, the first gif is from the 2nd capx i posted. Both capx i posted have the same name i think (sorry) so it could be a little confusing if you downloaded both. I quite odd that i have this issue but you haven't.

    I've uploaded the capx again, so please try this and see.

  • Right...... OK, obviously i've not made my issue clear enough to understand what i'm on about so lets try some visual aids, maybe that help explain what i'm refering to.

    This is what i'm talking about. This is from my 2nd capx. Do you notice how each time the player drops, the player moves closer and closer to the left? The player ends up at the edge of the screen... This is what i want to FIX.

    Note the difference with this example, where the player drops but does NOT move to the left and end up at the edge of the screen? This IS how i want it.

    (Apologies for the quality, should be OK though)

    I tried fixing this issue on the 1st capx i posted by setting the player's X (which is line 16 in the capx), but ended up with a glitch where the player moves through platforms. Judging by the feedback,I'm guessing this is the wrong way to go about it, so i'm looking for a solution to the problem above, where the player moves to the left when falling.

    I hope thats made it clear and any help would be appriciated.

    [quote:sd7mcpke]Btw, line 12 is wrong, i've corrected it, didn't check everything in detail, line 12 just too obvious.

    This is from the Autorunner Template on Construct 2.

  • I don't get why you can't see the problem, the issue is there with the 2nd capx as I've just tested again.

    What happens is when my player falls of a platform (without jumping), it moves gradually to the left of the screen. When the player jumps, it's fine, its only when you let the player fall/run off the platform that this happens.

    It's a slight movement but i have double jump so if you just fall/run off the platform and then jump in mid air and land on a platform and do it continuously, you'll see the player getting closer and closer to the left of the screen.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When the player runs or falls off the platform, they shouldn't move left or right, the X position should stay fixed so that doesn't happen.

    In my game, when you fall off, my player moves to the left of the screen, which it shouldn't do. It should stay in the same X position.

    I tried to fix this by creating an event that sets my player's X manually when falling, and although this worked, my player starts going through platforms which is the glitch I'm refering to in the 1st capx.

  • I've mentioned in the first post that the glitch doesn't occur with line 16 removed.

    The reason i added line 16 is because i had an issue with my player moving to the left to the screen/going back each time you drop/fall off the platform. If you continously do this, eventually the player will end up on the edge of the screen.

    Unfortunately, with line 16 added, the glitch with my player falling through platform occurs.

    The 1st capx i posted has the glitch with falling through platforms. The 2nd capx i posted just the same as the 1st capx except without line 16, so the issue with that one is my player moving towards the left of the screen when falling of a platform.

    I basically want to solve the issue of my player moving towards the left of the screen when falling of a platform.

  • I've mentioned previously that i have been struggling with an issue with my player moving to the left when falling, and unfortunately no-one has been able to come up with a solution (although many have been helpful enough to try, which is appriciated)

    This was the only method i could find that would work, but it has created other problems like you said, which i was hoping could be fixed. I don't see anything wrong with asking for help with that...

    I've added my old capx without the changes, where the issue is with the player moving back when falling. If this issue can be solve then that would be great, but as i've mentioned, i've not been able to find a solution yet.

  • Anyone? Sorry to bump this but I could do with some help....