Doomish's Forum Posts

  • Maybe try something like this:

    +Always

    ->Set playerhealthbar.width to

    clamp(playerhealthbar.width - 1, (player.value('health') / 100) * playerhealthbar.value('maxwidth'), playerhealthbar.value('maxwidth'))

    That should work (assuming player has 100 as health max) <img src="smileys/smiley1.gif" border="0" align="middle" />

    <img src="smileys/smiley3.gif" border="0" align="middle" /> Holy diver! I dunno what kind of arcane tome you had to decode to come up with that but it worked like a charm. I was even able to modify it a little to get it to incrementally refill when the player heals. Thanks!

    Though... I have no idea WHY it actually works. A brief explanation of what any of that actually means would be very much appreciated. <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Hello! I'm making a side-scroller that uses the following health bar (as an example):

    <img src="http://i.imgur.com/yMjran3.png" border="0" />

    Here it is at full health. When the player takes damage, it goes down one notch, like so:

    <img src="http://i.imgur.com/eEKWGTl.png" border="0" />

    The way I do this is by setting a "health" variable for the player because they can only take a maximum of four hits. I have a set width for the color inside the bar, a separate object called "healthbar_color", for each increment from 4 to 0.

    My question is, how do I make it so that it doesn't just jump from one width to the other? Here is an example of what I want it to look like that I made in Photoshop:

    <img src="http://i.imgur.com/mtsNibx.gif" border="0" />

    Ideally, when the player loses 1 health, the bar will slide down to the next notch. Anyone out there able to help?

  • Oh, wow, thanks, man. Much appreciated! I knew it was something simple I was overlooking but I didn't know it was that simple. Maybe that's why I was overlooking it in the first place! <img src="smileys/smiley9.gif" border="0" align="middle" />

  • This is making me feel really stupid because it seems like there should be an easy way to do it, but when I make new layouts, even if I have things set to Global, nothing shows up in the Objects tab on the new layout. Trying to make them again gives me an error about them already existing, but I can't place them or see them or anything. What am I missing?

  • <img src="http://i.imgur.com/KL7VB.png" border="0">

    In the above screenshot you can see the red enemy, the Hateman, in mid-walk cycle. He's supposed to be walking to the left... but he's just sort of jittering in place and occasionally moving right instead. It's kind of hard to show in images, so I uploaded the .cap. Could someone do me a huge solid and find out what I messed up? It's right under my nose, I'm sure. It's almost definitely something totally simple but I can't for the life of me figure it out.

    Download the .cap here if you'd be so kind.

  • It worked flawlessly, thank you so much, now I can stop being frustrated and work on the rest of the game ! <img src="smileys/smiley20.gif" border="0" align="middle" />

  • I'm making an Idle game (a game you let run in the background while you do other things and it pretty much automatically proceeds without you, but that's beside the point) and here is an example of my progress bar:

    <img src="http://i.imgur.com/WDNNa.png" border="0">

    The green fills up the orange bar at 1 pixel per 30 ms, and when it reaches the other end of the bar, it gives EXP and coins, as seen here for example:

    <img src="http://i.imgur.com/yQI6P.png" border="0">

    When the game is "completed", the progress speed will be far, far lower, it's only fast as is so that I can level up quickly to test things, which comes to the problem I am having. Here is what I would like to do with it:

    There is a button you can press to spend some coins and temporarily increase the speed of the progress bar, and it can be repeatedly clicked to speed the boost up even more, at least until you are out of coins. I know how to make the button and I know what to do with it, but the problem is that I have no clue how to make temporary boosts.

    If you want to mess with the .cap, download it here. You will likely need the Sprite Button Plugin to open it, however.

    I would really appreciate a tutorial of some sort instead of "just do X and Y will happen", it'd be much more helpful.

  • So, I have the enemy (here referred to as arenaEnemy1), and I have the spawn point (here referred to as arenaSpawnbox). I have been completely unsuccessful in all previous attempts, but here's the basics of what I want to happen:

    I want an enemy to spawn at the spawn point every 1000 milliseconds and follow proper enemy behavior (that is, go directly towards the player in a horizontal straight line).

    Problems I have had with this include: Enemies never spawning, enemies not following the behavior I have given them, one enemy spawning and then no more, the list goes on for a while. Can anyone help me?

  • I can't really explain what I want to accomplish in words, so here's a visual aid:

    <img src="http://i.imgur.com/7rCa7.png" border="0" />

    I want the player to be able to talk to friendly NPCs but I cannot figure out how to do it. I've got the NPCs and I've got them to move around, and I've got everything for the player set, I just don't know why it's so hard for me to figure out how to make a text box come up, make it say some stuff, and then make it close. <img src="smileys/smiley7.gif" border="0" align="middle" />

  • Well, it worked, but that's not quite what I'm looking for, because it makes the sprites themselves blurrier on upscale. I'm hoping for some sort of zoom where there's no compression or loss on the graphics themselves.

  • Is it possible to have a project zoom x2 or x4 or x6 (etc.) on startup? For example, the layout is 320x320, but I want to keep it that size so I don't have to upscale all the tiny little sprite characters, and I want the full window to be 640x640 to give it that blocky retro look. Is there any sort of zoom feature or plugin I can use?

  • Try this:

    http://sourceforge.net/apps/mediawiki/c ... _tutorials

    The link to the actual tutorial is broken.

  • Does anyone have a tutorial handy? I have no idea how to actually make it play sounds.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a way to make a Light's position set to an object (in this case the player) so that it follows him? For example, I have the player's sprite position set to the player's hitbox, and that works fine, but I can't figure out how to do the same thing with the Light. I'm almost positive there's a way to do it but I don't see any option for it.

  • Copy the .persist file that pertains to the .cap you're trying to run to another location, then delete it from its original place.