OddConfection's Recent Forum Activity

  • luckyrawatlucky

    I've updated the capx so that the slider background shouldn't change size now.

    It's just changing the first event where the Tiledbackground width is set, replacing that action with:

    System: Set StepImageSize to TiledBackground.Width/Steps

    I'll upload it shortly to same link:

    capx (r233)

  • luckyrawatlucky

    You probably want to do something similar to snap-to-grid.

    I've made a stepped slider based on that here:

    capx (r233)

  • Aliigames

    Global number GridSize is 32

    Sprite:DragDrop is dragging -> Sprite: Set position to (round(Sprite.X/GridSize)*GridSize, round(Sprite.Y/GridSize)*GridSize)

  • Did you try adding the events I explicitly stated in your other thread?

    You didn't reply so I don't think even know if you read it.

  • Voted and added to my collection of C2 games on Greenlight

    Game looks great and judging by the comments on Steam, a lot of other people think so too.

    I don't think you'll have long to wait for the green light.

  • I was thinking about this option as a last resource since it may cause problems with not horizontal grounds, however is one posible solution.

    It would be nice for future uses having a "Is touching" event. There could be something done with overlapping a slightly bigger hitbox

    Using is overlapping at offset to look directly below the player should work for any slope that the player can stand on, it's just a matter of how far below it you look, which is why I used 16 instead of 1.

    Also, the at offset version of is overlapping does away with the need for a bigger hitbox, with the offset essentially acting like extending the hitbox in a particular direction.

  • Diginampl

    Make sure the event that moves the hat to the character is placed after all the events that move the character, otherwise you could be moving the character away from the hat after it's already moved and it won't move to the new position until the next tick.

    Alternatively, you could add the Pin behaviour to the hat - then you just have to move the hat once (on creation) and pin it, then it will move with the character automatically.

  • juanfrancoc

    There's a few different ways to do it, depending on how you have your ground set up.

    Assuming you have different sprites for each ground type, one way would be to add Player is overlapping GroundSprite at offset (0,16) as a sub-event to the "Platform is on floor" event for each ground type and set speed/acceleration accordingly.

  • Immodium

    Try adding the System: Wait 1 seconds action to Event 20, that should delay the sub-events 21 and 22 from firing and doing the reload.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If the get returns nothing will it just put zero in the high score or do you need to check first if "highscore" has a value in it?

    I believe it will return 0 if there is nothing there, same as if you use the ItemValue outside of the On Get event.

    At least, that's how it seems to work in my game.

  • I have been working with the "Template-AutoRunner", that comes with c2. I want to store the score locally to the device. I saw many tutorials about using the local storage , but non-of these worked with auto runner

    I'm working on an auto-runner and save the High Score locally using local storage.

    Add the LocalStorage object

    Add global variables Score=0 and HighScore=0

    Initialise your high score:

    System: On start of layout

    -> LocalStorage: Get item "HighScore"

    LocalStorage: On item "HighScore" get

    -> System: Set HighScore to int(LocalStorage.ItemValue)

    In your level end event (where you'd show the high score and have a restart button), add a sub-event:

    System: Compare Score > HighScore

    -> System: Set HighScore = Score

    -> LocalStorage: Set item "HighScore" to HighScore

  • Soulmachine

    I'm not sure why you're getting different times on different devices, it could just be the responsiveness of their screens.

    Anyway, here is my attempt at recording time between taps: capx (r233)

    I use Touch: On Tap and add dt to a variable for time between taps

OddConfection's avatar

OddConfection

Member since 26 Jun, 2012

None one is following OddConfection yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies