dpmontes's Forum Posts

  • Thanks, that's an easy fix!

  • I'm trying to get my program to efficiently pick random instances of an object. Everytime it picks a random instance, I want that instance to be removed from the next round of picking.

    I thought I could do this by destroying the instance after it has been picked. To my surprise, destroyed instances are still being selected when I use the "Pick a random (object) instance".

    I have a simplified .capx to illustrate my problem. My goal for this little example is to have 10 of the red squares destroyed and only a single "X" appended to that square's text box.

    dropbox.com/s/63uuhoca3dqn03j/testing.capx

    Is there another way to do this? Perhaps use an array and remove items from that array and have the array automatically shrink so that I know whenever I randomly pick a point in the array, I'm guarenteed to pick an item and not an empty space? Kinda like an ArrayList in Java. Thanks

  • A bit off topic but how do I open these .cap files? I'm trying to use Construct 2 to open them. And how do I create them from my own project? Thanks

  • I want to avoid using animation frames because then I would have to make each individual frame and since I am doing this for cards, it would have to be a lot of different card faces to make animation frames for.

    I think I am just going to use the setSize property and make the width get really narrow so it looks like it's flipping over. It should be fast enough that it won't look wierd that the perspective is wrong.

  • I want to be able to stretch/skew/morph a square sprite into a trapezoid shape. It will be for an animation I want to make of flipping a card over.

    I assigned the "stretch" effect to the sprite and enabled the effect when I click on it. But now I need to change the "parameter index" and give it a "value" but I have no idea what these values should be.

    Is this the right avenue at all or is there another way? Thanks!

  • Tokinsom, I'll try messing with those two thing. I already verified that my sprite is at the same Y position regardless of whether it is on the floor or sunken into the floor.

  • I examined the example that comes with Construct 2 "Platform 1, Simple Movement" and I see it has the same 1 pixel error. So I have to assume it's just a fundamental flaw in the system. My code is nothing special. Just a jumping box for a sprite that is my main character and some solid sprites to jump on.

  • For my side scrolling game, I'm using an invisible rectangle for collision detection. I pin my main sprite to the location of the rectangle which is updated "every tick". When the main sprite jumps on solid tiles, the collision detection works perfectly about 50% of the time. But half the time, the sprite will sink 1 pixel into the ground.

    Because my game is low resolution (screen 256, 240) and my main sprite is only 29x30, a single pixel off is noticeable. I've verified that the Y coordinate is the same regardless of whether the sprite appears to be "on the ground" like normal or "sunken into the ground".

    Any ideas? Or is pixel perfection just not plausible? I could always multiply everything in my game by a factor of 4 for example so that the sinking in would only appear to be 1/4th the depth of a pixel but I'd rather fix the problem than mask it.

  • Try looking at the "Tutorials". scirra.com/tutorials

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much Nimtrix! It worked!

  • I went to the "View" drop down menu and it gives me several bars to choose from and the "Configurations Bar" is unchecked because I have the free version. I assume this is where I would need to go though? Are you reasonably sure that this will make the sprites retain their "sharpness"? Thanks for your help.

  • Is there a way to keep my sprites looking sharp in Construct 2? My sprites look very sharp and crisp when I design them in MS Paint but as soon as I load them into my game, they look very fuzzy and then when I play the game, they look even fuzzier.

    My main character sprite is 30x29, PNG and my whole screen size for the game is 256x224. I'm using Chrome.

    I tried creating a sprite that is an integer multiple of my desired size and then scaled him down but it didn't help much if at all. Any other tricks I can try?

    Thanks!