Aquanex2's Forum Posts

  • In my game I want the player to have the ability to customize the Gamepad or Keyboard controls however they like. I have an idea for the Keyboard controls, but I don't know what I'm gonna do for the Gamepad. If anyone has any ideas, please share them with me! Thanks a bunch!!!

  • What is your window size? If you're using a really small sprite with a small window, the character movement from pixel-to-pixel is much more noticeable, and can sometimes create a stuttering effect

    Sorry I didn't notice you responded. It is 640, 360. And the sprite is 40, 40.

  • > Was jittering occur on camera or character? You can use distance comparison (or value) whether character and camera are close enough to turn off lerp on camera and vice-versa.

    >

    The character was the one that was jittering. I think it may be because I turned off pixel rounding, but I don't want to enable it again.

  • Was jittering occur on camera or character? You can use distance comparison (or value) whether character and camera are close enough to turn off lerp on camera and vice-versa.

    The character was the one that was jittering. I think it may be because I turned off pixel rounding, but I don't want to disable it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I use a lerp camera that smoothly follows the player, and I think this is the cause. Whenever I stop moving while the camera is still moving, my player jitters for a bit until the camera stops moving. Does anyone know how to fix this?

    Thanks!!!

  • I know how make it move in a circle pattern (by giving the object two sine behaviours, setting the periods to the same values and magnitudes to the same values, but making the offset of one of the behaviours one-fourth of the period) and I tried changing the wave properties of the sine behaviours to triangle, and it did make the movement square shaped, but it was a tilted square, so more of a diamond shaped pattern.

    Any help with this would be nice!

  • If I have specific issues like this I'll write my own specific debugger. Usually this consists of a TextBox (set its Type to 'Textarea' so it can display scrolling multi-lines) on a 0,0 parallax layer and an action that sets its text to a readout under specific circumstances. I don't tend to make mousey-games so I'll use the mouse as my 'debugging tool' - set it so that when you click an instance the text in the textarea is set to show a readout of all the relevant values to your issue. Something like that anyway. I was inspired by learning that cheat-codes were originally just developer shortcuts for debugging.

    Wow! I've done something like this, but not to this extent. This is great info! Thanks

  • > The best advice I can offer is to keep a close eye on your profiler. I almost always run in debugging mode, so that I can individually check variables on instances and so-on. Whenever I find unexpected behaviours, I generally find incorrectly set instance variables, bad calculations, NaNs and floating point errors - which are entirely my fault!

    >

    > I know it sucks, but the mantra should be to 'fail faster' - then fix the fails.

    >

    That's good advice. I don't always run it in debugger, unless this kind of thing happens. I have already done this, though, but I can't for the life of me fix this issue. Here's the issue I'm having right now, and maybe you can give me some more advice. I'm trying to make a shooting enemy that shoots at you every 1.5 seconds, and everything works for the most part, but for some reason when you are on the left side of one, and there are more than one, things go haywire. He shoots in the wrong direction, then he just stops, but all the ones on the left side keep shooting.

    I've checked my events, and none of them have anything to do with what side you are on. I thought maybe there was a problem in having them become active at the same time so I set a variable to make them only be active when they get on-screen, but that fixed nothing. I'll supply pictures of my code, but it'll take me a bit to make a capx.

    https://www.dropbox.com/s/1lr6ywhhv2dl6 ... 1.png?dl=0

    https://www.dropbox.com/s/7ywvbwy3v5w2l ... 2.png?dl=0

    Nevermind, I fixed it by changing the trigger for the shooting. Now it works.

    Thanks for the advice, though. I should definitely use the debugger more often! <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

  • The best advice I can offer is to keep a close eye on your profiler. I almost always run in debugging mode, so that I can individually check variables on instances and so-on. Whenever I find unexpected behaviours, I generally find incorrectly set instance variables, bad calculations, NaNs and floating point errors - which are entirely my fault!

    I know it sucks, but the mantra should be to 'fail faster' - then fix the fails.

    That's good advice. I don't always run it in debugger, unless this kind of thing happens. I have already done this, though, but I can't for the life of me fix this issue. Here's the issue I'm having right now, and maybe you can give me some more advice. I'm trying to make a shooting enemy that shoots at you every 1.5 seconds, and everything works for the most part, but for some reason when you are on the left side of one, and there are more than one, things go haywire. He shoots in the wrong direction, then he just stops, but all the ones on the left side keep shooting.

    I've checked my events, and none of them have anything to do with what side you are on. I thought maybe there was a problem in having them become active at the same time so I set a variable to make them only be active when they get on-screen, but that fixed nothing. I'll supply pictures of my code, but it'll take me a bit to make a capx.

    https://www.dropbox.com/s/1lr6ywhhv2dl6 ... 1.png?dl=0

    https://www.dropbox.com/s/7ywvbwy3v5w2l ... 2.png?dl=0

  • I know this question is very vague, but sometimes things in my game go inexplicably wrong, even when everything else goes right. Like for instance if one enemy doesn't behave the same way all the others do, even though all of the variables are the same and all the behaviours are set to the exact same settings. Things like this have happened several times to me, and if you understand where I'm coming from and could give me some pointers on fixing issues like this, I would greatly appreciate the help!

    Thanks in advance!

  • Hey. So, honestly, I think this might constitute a bug. I might consider submitting a report for it - my player sticks to the spinning platform and almost always gets pushed back on top without falling off. It's bizarre.

    I made a work around for you and added some comments. I hope its helpful at this point.

    https://www.dropbox.com/s/qkf02ii5po5rp ... .capx?dl=0

    EDIT: Oh I just noticed it's your birthday. Happy birthday!

    It does work somewhat, but not exactly what I want. I see what you were going for, though, and it can work if I tweak it a bit for my needs. Jeffige was telling me about Physics so I might go that route, but I'll just have to see.

  • Hey. So, honestly, I think this might constitute a bug. I might consider submitting a report for it - my player sticks to the spinning platform and almost always gets pushed back on top without falling off. It's bizarre.

    I made a work around for you and added some comments. I hope its helpful at this point.

    https://www.dropbox.com/s/qkf02ii5po5rp ... .capx?dl=0

    EDIT: Oh I just noticed it's your birthday. Happy birthday!

    Thanks man for both things! I'll give it a try! <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green"> <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green"> <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

  • I won't be back at my computer till later today, but now that i see it.... Physics behavior on the block might be a good start. This will allow in-game gravity to take over, almost like in the real world.

    You'll probably have to mess with the settings to get it how you like.

    Yeah that's what I tried, but I didn't know what settings to change in order to get it the way that I wanted. I'll keep trying though.

  • No clue what you're trying to convey. Upload a screenshot so we may better understand.

    https://www.dropbox.com/s/x1xmjvbqdi2fy ... d.png?dl=0

    He should slide off at any angle higher than this but he doesn't

    Here's a capx

    https://www.dropbox.com/s/d9mc6wz06yfei ... .capx?dl=0

  • I have a rotating platform, but the problem is my player doesn't slide off when it looks like they should. How do I make it so that, at certain angles, my player slides off the platform? Any help is greatly appreciated!