Bashie's Forum Posts

  • 15 posts
  • It's been bugging me ALL THE TIME. On the internet, no advice I can find is legit and I'm left to wonder and struggle. First was with the Photon plugin, featuring a text box as a chat log which couldn't scroll past 5 messages, and the construct 2 example of a chat room doesn't even work when connecting people into one chatroom. Please help me.

  • By "like Pokemon Go" I meant the functions of tracking your location using GPS. I want to know how to make the game see "poke stops" and track the amount of kilometers traveled. I aim to make a similar game not based on catching pokemon, but I need tracking distance and pokestop systems to create said game. Anyone to the rescue?

  • Text object can't scroll. You need to use TextBox or install this plugin:

    https://www.construct.net/en/forum/extending-construct-2/addons-29/behavior-scrolling-for-47715

    TextBox is unable to make a new line using newline, and the topic you sent me doesn't have anything working even...

  • I need it.

    So I was setting up a chatroom and the thing is, when too many messages are sent to the chat box (like 5 xd) it just won't fill up anymore.

    Chat rooms are to chat, and therefore nothing must be there to limit chatting, we all know that.

    So the point of my topic is, I cannot make an endless chat log and there is no proper tutorial for it for as much as I looked around the net.

    I would be grateful if someone told me what I'm doing wrong, but please do not throw a lot of high-IQ ways to solve it, I'm just a beginner help

    : ) drive.google.com/file/d/1Ln68uth0UjkS1YUZUhfDk7yni_1VPkSH/view

  • On your events for destroy block on hit by the projectile, you can take the Y co-ord of the block at this point and set its value to a global variable. Then you do pick by evaluate, blocks where Y is less than the global variable, moved them down by 1 space i.e. 20 pixels.

    For some reason even this confuses me as I am very new.

    I solved this by making the build zone appear where the broken block was, but I'm still confused as to how to move blocks down. You will really help me out if you added me on discord: THEleg#4962

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for your reply!

    get the co-ordinates of the block that was just destroyed. Then do a check, any blocks where Y is less than the location of that destroyed block

    How do I do that Construct-wise? :c

  • So I'm making this game about bluntly building a wall. Even here, there are a lot of things that put me in a choke, and I'll be greatful if you guys helped me.

    Maximum blocks you can build on a wall is 5. Once a block is broken, more is added to the maximum, so I can build blocks infinitely by breaking them. It's intended.

    Now the building zone, it's red and you can't build unless you're in collision with an invisible sprite.

    It moves up after a block is built, but the problem is, I do not know how to move it down in case a block is broken, resulting in endlessly building upwards.

    Can someone tell me how to put it on an empty block space once one is broken? .capx is included:

    drive.google.com/file/d/1O8tCBvbCKqt5KLLK8dIM5GWNf7wu0eNP/view

    Use 0 key on your numpad to throw projectiles to break the wall.

    You can also press N to give yourself money if you run out of it while testing.

    Thank you! <3

  • I don't have a computer right now and won't have for a while, am just on my phone but didn't want it to seem like I was ignoring the post. Arrays do seem to scare everyone but they are fairly easy. All you are doing is pushing 12 numbers onto it and then picking a random number. But in an array you can remove the number you picked so it doesn't get picked again. I can't think of an easier way to do it but this way is super simple if you have looked at the array documentation.

    Alrighteth, thank you Plinkie!

  • Well random(1,12) is going to pick the same number sometimes, so you want it to spawn only once per imagepoint? My approach for this would always be to use an array with all relevant values pushed onto X then pick something from 0 to array.width. You then delete that X from the array so it can't be picked again.

    This could also work if something was destroyed on an imagepoint, you could add the number back into the array so it's selectable again if your game requires this.

    Also watch out with random(1,12) as that picks decimals so you probably want to use floor(random to get a whole number.

    Ssssorrrryyy, I don't get how to do the thing you stated in the first paragraph of your reply, but thank you! It's just, could you please explain how it'd look like or give me a little .capx just so I can see how it is made? I am really a beginner, and clearly not a smart at that... Thank you!

  • Every X seconds --> Spawn (Object) on (Object), imagepoint random(1, 12)

    ^

    That spawns objects one on another, sometimes. I tried destroying and respawning overlapping objects, but that does not work properly, as the same random objects just disappear. I found a topic like this one, but the answers confused me. Can someone help me please?

  • Check the origin point position in the progress bar sprite. If you want it to grow from left to right, than Origin image point needs to be set at X=0.

    Thank you so much, everything works!! Good luck in your work!

  • Don't use Progress Bar object. It's very easy to make a custom progress bar with a sprite or TiledBackground. Simply change its width, for example:

    ProgressBar set width to (Self.ImageWidth*progress)

    where progress is a number from 0 to 1.

    Sorry for a late response! It seems to be kind of working, but no matter what I do, the right side of the progress sprite gets faster than the left side. I used a timer for 5 seconds for this one, and it starts as a 5 second timer, then I use:

    System > Every tick > (Progress Bar) Set width to: Self.ImageWidth*GrowProgress.Timer.TotalTime("5") <-- Just a tag

    My main effort is to fit the progress bar in the frame for it that exists as another sprite, but it just looks unnatural if the other side gets longer faster than the other one...

    I'll be very glad if you help!

  • Thank you kind sir/ma'am! I will try it soon and respond as a reply if I have further questions about it, or if something wouldn't work. ^^

  • Hello, I'm a bit familiar with usual functions of Construct 2, but I can't get around customizing a progress bar. I see that it's a common thing in games, but I have no idea how to make a progress bar look the other way. For example, it could be colored like rainbow, starting from red and ending on purple, that kind of line. But how do I actually change the sprite of the progress bar? It's a vital part of the game I am making.

  • I'm a total newbie, and I have no idea how to make the map generate each time on a new floor or something like that. The game is supposed to be a room-to-toom roguelike. Nothing on YouTube, that's wy I decided to post here. Sorry for not enough words, but I really want to know how to do that. I'll be grateful if you have any tutorials or links to them!

  • 15 posts