dop2000's Forum Posts

  • Your link is broken. Try posting it without the "https://www." part

  • Oh, wait, you mean Bucket tool to fill a shape with color?

    I thought about a "picker" tool to select color.

    I think Canvas plugin is your best option.

  • Thanks!

  • You may be able to do this with ShadowCaster. Here is a very crude example, I don't have much experience with it:

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

  • There is a Color Picker plugin, but I don't know how it works.

    If you have a small number of colors, you can just make them with sprites - red sprite, blue sprite etc.

    If you need a full palette, you might need to use Canvas plugin to read pixel color:

  • Yeah, after you export your project, open Images folder and sort images by size.

    When I did this with my game I found several huge sprites which I forgot to delete or resize and managed to reduce the size of my project by 30%.

    Also if you have very big images, you should enable compression for them, this will greatly reduce their size:

    https://www.scirra.com/tutorials/1154/d ... h-pngquant

  • You can define two image points on the player sprite on both sides, just above the ground level. (Blue line represents Player sprite)

    Like those little training wheels on kids' bicycles

    Then use these checks on every tick:

    System -> Pick Ground by overlapping point (player.ImagePointX(1), player.ImagePointY(1))

    ...Rotate player 0.5 degrees

    System -> Pick Ground by overlapping point (player.ImagePointX(2), player.ImagePointY(2))

    ...Rotate player -0.5 degrees

    You can use lerp or tween for smooth rotation.

    To detect ground angle when player is on top of the hill, you need to define two additional image points just below the ground level and perform similar checks for them..

    If you are good with math, instead of using 4 image points, you can do lots of overlapping checks around the player to determine ground angle with better precision. Overlapping tests in C2 are fast, even if you are doing a couple of hundreds of them every tick, they should not affect the performance.

  • It's easy:

    Sprite set angle to (Sprite.instanceVarAngle)

    Or did you mean something else?

  • No I meant in megabytes.

    I know my internet is slow, but it was loading at least 4-5 minutes...

  • Nice graphics!

    How large is this game? It was showing "Loading" screen for so long, that I thought it froze. You should add some kind progress indication.

  • Have you considered Car behavior? Here try this demo:

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

    (I believe you can open C2 project in C3)

    It's not ideal, but you may be able to tweak the values and controls further.

  • That's how float numbers work.

    If you need only 1 digit after decimal point you can do round(x*10)/10

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I recommend you check collision polygons for all frames in all animations - ideally they should be identical. And Origin image point should always be in the center. This will save you lots of troubles.

    Many people use this trick - add an invisible sprite with just one frame and platform behavior, name it BossPlatform. Remove platform behavior from Boss sprite. Pin Boss to BossPlatform.

    You will be able to control BossPlatform, and animations/polygons on Boss sprites will not interfere will platform movements.

  • pez263

    Fixed:

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

    It kills me to see such inefficient code.. I made some changes, hope you like them. There are two function that display text in two different ways, you can delete the one you don't need.

  • pez263 Could you share your capx file?