OddConfection's Recent Forum Activity

  • RickUSBstick

    You just need to clamp the Player's position to the Square's bounding box while dragging

    Player Is dragging

    Set X to clamp(Player.x, Square.BBoxLeft, Square.BBoxRight)

    Set Y to clamp(Player.y, Square.BBoxTop, Square.BBoxBottom)

    This will keep the Player's origin within the Square, so you might need to adjust the values to keep the entire image within the Square, e.g. add half the Player's image width to BBoxLeft and subtract it from BBoxRight.

  • If it doesn't have to be unique or saved, you could just do something like:

    Set Text "Welcome, User | IP: " & floor(random(256)) & "." & floor(random(256)) & "." & floor(random(256)) & "." & floor(random(256))

  • I'm having a problem to load PNG files. The image has a transparent background but the bg always is showed black. Do you know how can I fix it?

    I'm not sure what the problem is as I am able to load a PNG with a transparent background without problem. Have you tried different PNGs? Maybe there is a problem with the one you are testing.

    A long shot, but I know early versions of Internet Explorer had an issue with PNG transparency, maybe it's a browser issue.

  • I think it refers to comments in the Blog and Release pages, rather than Forum posts.

  • Maybe something like:

    score >= 1000000000000

    -> displayText = int(score/1000000000000) & "T"

    else score >= 1000000000

    -> displayText = int(score/1000000000) & "B"

    else score >= 1000000

    -> displayText = int(score/1000000) & "M"

    else

    -> displayText = score

  • Could you please explain to me what I need to do in the "step 3"?

    Say sprite is supposed to be no bigger than 256x256, use a couple of variables/globals to store new width and height based on calculation that sets the biggest side to 256 and the other to a proportionate size, then apply those to the sprite

    newWidth = sprite.Width >= sprite.Height ? 256 : (sprite.Width/sprite.Height)*256

    newHeight = sprite.Height >= sprite.Width ? 256 : (sprite.Height/sprite.Width)*256

    sprite.Width = newWidth

    sprite.Height = newHeight

    EDIT: Did a quick example capx (r233)

  • I made a collection of C2 games on Steam Greenlight and a lot of those have got through and are on Steam.

    I think a rough guide for votes these days is about 3,000 total with at least 40% yes votes, but some have got through on far fewer. It's more about getting traffic to Steam and engaging with the community though, rather than pure numbers.

  • They already mentioned about it in the blog.

    At some point in the future we might address the games featured on our website - but not at the moment.

    My guess is once the initial rush of devs contacting them about social media promotion dies down, they'll probably pick out the best few games to feature on the website.

  • > Wait X Seconds is a Condition.

    >

    Do you mean 'Every X Seconds'? Not sure 'waiting' as a condition sounds logical...

    But yes, the same logic would apply

    Yes, that's the one. Was going by the OP's naming of the condition rather than checking but knew which one he meant. You're right about 'waiting' not sounding very conditional, I should have picked up on that..

  • The 'wait' action is the same as 'wait x seconds'—you don't see two separate actions, correct?

    Wait is an Action, Wait X Seconds is a Condition.

    When you're setting deltaTime (dt) in events, says Ashley in some blog or tuto that it should not be used for the Wait X Seconds condition, as it would only make that event dt dependent again. But what about the Wait action? Should it go in dt or secs?

    Same logic applies to Wait as to Wait X Seconds, use seconds.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • - Hero jumps into the spikes at the ceiling. But he shouldn't reach them! There is barely space between the jump high of the player and the spikes, maybe just 1 pixel. But on most devices he doesn't reach them (or only in rare cases). But on this one device regulary. This rises the question: how can it be that the jump high is different? Or are there perhaps differences with floats in the collision polygons?

    The jump height can vary depending on device/browser and dt/fps, by much more than the 1px you're allowing. See this old bug report.

    I'd suggest increasing the tolerance to at least 8px, and increasing it if the problem persists.

  • I am trying to place the "gas" and "break" sprite on the left and right on window.

    In addition to being on a HUD layer with 0,0 parallax, you might want to give those Sprites the Anchor behaviour, so that they will maintain their position relative to the edge of the screen on different resolutions.

    I can't find the Is on mobile expression , i am using construct r233

    When adding the condition, double-click on System, scroll down to Special Conditions and you should find Is on mobile device there

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