dop2000's Recent Forum Activity

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • 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?

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 250 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies