dop2000's Recent Forum Activity

  • What exactly is your problem? You need to be more specific.

    Install Chipmonk behavior, check phone orientation, adjust gravity vector.

  • Since this post is about audio effects, is there any way to do Pitch?

    I want to add a bit of variation to repeating sounds in my game.

    I know I can create and upload different versions of the same sound, but I hope there is an easier solution.

    The closest effect I could find that does something similar is "Ring modulator", but it doesn't work well with some sounds.

    Changing playback rate is also not a good option.

  • For platform movements like running/jumping you need to replace "Keyboard On <key> pressed" events with "Keyboard Key Is down".

    "On" events are triggered only once. "Is" events are triggered multiple times while the key is down.

    (Same goes for Mouse and Touch events)

    Use "On" events for actions where you don't need repetitions - for example to open a chest, press a button etc.

    For the same reason you should not have actions like "Set animation (play from beginning)" in "Is" events, because animation will be stuck on frame 0 while the key is pressed. (see event 11 on your screenshot)

    You can use "On" event to start animation, then "Is" event to simulate platform movement.

  • Did a little googling

    Time to decelerate to zero:

    time=(speed/deceleration)

    For example if current speed is 900 and deceleration 300px/s, then you need 3 seconds to stop the ship.

    Formula to calculate the distance:

    Distance=deceleration*(time^2)/2

    So to stop at target you need to start deceleration at distance 300*9/2=1350px

  • Did you set the value 0/1 with events? You were doing something wrong, because a code like this should definitely work:

     
    .... Spawn Enemy
         Enemy Set enemyType=1
         Enemy Set animation to "Snail"
    [/code:dhk0rxs7]
  • See this post:

  • Are you assigning any value to that instance variable after you spawn a new instance of the sprite?

    You need to specifically assign the proper value, unless you want it to be default. I'm guessing your default value is 'slime'.

    Same applies to the animation.

  • TileMap object has a number of expressions to convert tile coordinates to screen coordinates and vice-versa.

    PositionToTileX(x)

    PositionToTileY(y)

    SnapX(x)

    SnapY(y)

    TileToPositionX(x)

    TileToPositionY(y)

    Use TileAt(x,y) to get tile ID.

    As for your second question, it depends on your game. If this is just for storing customizable properties for individual tiles, I would probably use an array or dictionary. If you need to add animations, behaviors etc. to your tiles, you will need to replace them with sprites. (or put sprites on top of them)

    I have an event set up so when I click the tilemap in an editor window (separate layer, paralax 0,0), but it selects tile id -1 instead of the tile I clicked on. I'm assuming it's not translating the mouse coordinates to the editor tilemap because of the parallax (the tilemap technically isn't moving)..

    Not sure I understand.. You may need to add scrollx, scrolly to your mouse coordinates. And probably subtract WindowWidth/2, WindowHeight/2. It's hard to tell without seeing your capx.

  • Use "Overlapping at offset" or compare distance(sprteA.x, spriteA.y, spriteB.x, spriteB.y) using "System->Compare two values"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can try spawning two light sprites.

    One with "Destination out" blend mode to make a hole in dark layer. And one with something like additive blend mode or overlay effect on the background layer to add color.

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

    There may be a better way, but I couldn't find it.

  • Here is the method I know:

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

    Also, there is an example project in C2 - start a new project and select template "Multiple colored shadow casting lights"

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 247 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
  • x4
    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