tomhaiger's Forum Posts

  • Can anyone help me out with this please?

  • Thanks MrGoatsnake It seems to be better now, and with such a simple change

    Also great job with the tutorial. Thanks for taking the time out to do this, i'm sure this will help a lot of people out.

  • I've been looking at ways to incoporate a Sonic style jumping to my game, where the height/power of the jump is determined by how long the user touches the screen.

    I found a helpful solution to this by MrGoatsnake here (remove the space between the slash next to https: and the space after www.) -

    http:/ /www. scirra.com/forum/simulate-change-keyboard-buttons-to-touch-screen_t106759

    This thing with this is when i tap the screen (mouse click in this case) the player does do a small jump, which is what i want but i don't like the way the jump occurs. When the player does the small jump, it looks as if it's hitting an invisible block and just coming straight back down (best way i could describe it ) When the player does a high jump by holding the jump button, the jump looks fine.

    I would like to fix this jumping motion so that the small jump looks like a small jump rather than how i described it. Is there any way to do this?

    I hope i've made it clear what i'm looking for, might be a bit confusing.

    I've provided the capx file from that thread, credit goes to MrGoatsnake.

  • I'm creating an Autorunner game where the platforms appear randomly in different lengths and i wanted to create a platform that looks quite realistic in the sense that the sides are not just straight rectangle lines but are sort of rugged or curved off.

    Is there a way that i can use a image with rugged edges (or something similar) as my platform and the image appears correctly as a long or short platform depending on the size.

    I'm having trouble trying to word this properly as it's a bit complicated to explain, so i can understand if anyone is confused. I've provided a capx file, which is just the Autorunner template. What i've done with this is added a platform image that i just quickly photoshopped from an image and inserted it into the game.

    In the capx, you can see that if it's a short platform, it just cuts the image rather than resizing and if it's a long platform then it respawns the image and theres a gap in between, which doesn't look great. I know why there is a gap, as i'm using a tiled background as my platform and my image isn't really sutible for that.

    If i wanted to use the image in the capx as my platform, how do i do that?

  • Thanks! That's fixed the problem

  • I don't think it's a bug because if i change the Webstorage action back to how it was before it works the way it should do, the highscore updates when the score is beaten and stays that way until it's beaten again.

    Heres how the web action was before -

    Webstorage - Set local key "Highscore" to round(CurrentDistance)

    It's only when i change it to how it is in the picture above that the problem arises. So i think its a problem with how i've done it, but i'm not sure what i've done wrong. Do i have to do something different with the expression because i'm using Webstorage?

  • I've got this working with my scores during gameplay so thanks for that but I've got an issue trying to get this to work with my webstorage.

    Basically when i try to input this into my webstorage event which saves and displays highscores, it works the very first time after reseting webstorage value but after that the score doesn't update regardless if the score has been beaten until i reset the webstorage value again.

    I've provided a screenshot of what i've done, i hope this is enough to go by

    Sorry if i missed out anything out, hopefully someone can help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm a beginner here and I too was looking at how to insert commas into numbers. Thanks trultz for the detailed guide into doing this.

    I'm curious to Magistross & ggibson1 method of doing this. Could you guys go into a bit more detail on how to use this expression please? I've tried inputting this into my score via functions but its not worked for me as nothing happens.

    I haven't found many topics that talk about RegexReplace so my knowledge on the matter isn't great, which is probably why it hasn't worked for me.

    Thanks.