dop2000's Forum Posts

  • Sorry, I don't understand - why don't you just close the program at the end of the day?

    It's not the kind of software that's intended to run for days. So who knows what's happening when you leave it running for too long. Maybe it's creating too many temporary files or is somehow affected by the scheduled maintenance tasks Windows runs at night.

    C2 takes just seconds to load, so why stress about it? Just re-open it in the morning and forget about this issue

  • "On key pressed" is a triggered event (it has that little green arrow). Try not to use triggered events in sub-events.

    Also, you already have the same "On A pressed" event in line 231.

    Read about triggered events here:

    https://www.scirra.com/manual/75/how-events-work

    Is this what you were trying to make?

  • newt

    I still don't understand what you mean.. There is nothing in the official manual about system picking being any different from "regular" picking. I'm using system picking a lot and apart from this bug with or-block I never had any issues with it.

    Do you have any links or maybe a demo capx that explains your point?

  • Don't use solid behavior. Instead, use "Enemy->On collision with Door" to stop enemies from passing through doors.

  • I'm an Animator/graphic designer primarily, but I'm more logical and good at Maths (and humble, and more handsome)

    Hey, we have so much in common! Only I'm not an animator/designer and not very good at logic or math.

    The good thing is - if you fail as a game developer, you can always build a career in stand up comedy! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Here is a comprehensive tutorial on how to make online leaderboards:

    https://www.scirra.com/tutorials/346/on ... -php-mysql

    You can use the same approach to export any data.

    Also, check the AJAX section in the FAQ:

    viewtopic.php?t=63692&start=0

  • "submitScore" must be a custom JS function that guy created. You can't possibly do anything without the help from your company's web developer. (unless you are the web developer, in which case you are in trouble )

  • Add event -> CellSprite -> Pick nearest/furthest -> Nearest to (x=Piece.x, y=Piece.y)

    With TileMap:

    On Piece drop

    ...Piece set x to TileMap.SnapX(Piece.X)

    ...Piece set y to TileMap.SnapY(Piece.Y)

  • Thank you, Ashley!

    Once you know about this bug, there are lots of ways to work around it. I'll just have to be more cautious with using OR-blocks in my code.

    So it's not a very urgent matter, but it would be nice to have it fixed some day.

  • Hey Ashley,

    Sorry for summoning you, could you take a look at this please?

    If this is in fact not a bug, please explain why this is happening?

    Basically, when Or-block is nested under System->Pick event, the results are unpredictable.

    Updated CAPX:

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

  • Just change the last line in your event #4 to this:

    barra -> Set width to (XP/XPMAX)*Sprite2.width

    You can add min() or clamp() so it won't grow bigger than the Sprite2.width:

    barra -> Set width to min((XP/XPMAX)*Sprite2.width, Sprite2.width)

  • Sure.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • AJAX can't filter data, it will load the entire file. And you will need to find 4-letter words in AJAX data.

    How is your text file formatted?

    If it contains a list of words separated by the same symbol (comma, space, line break etc.), then it's easy.

    Use expressions Tokencount() to get the number of words, TokenAt() to retrieve each word, and Len() to check word length.

    For example - loop from 0 to Tokencount, compare each word length, if it's 4 letters, then add this word to an array.

    If the file has a different structure or contains some random text, it may be a bit more complicated.

  • divyach

    Have you actually tried any of the advice posted here? My previous comment does what you want.

    Not "exactly" like Hero Jump, but close enough. You can tweak scroll and jump speed, parallax and other values.

    Event #3 controls the scrolling, you can change it to (160, player.y), or to something like (160, lerp(scrolly, player.Y, dt*8)) if you want smoother movement.

  • From my experience:

    Don't use effects on mobile! A very simple effect applied to a small sprite could cost a few fps on an older phone. Ten sprites with this effect - and the fps can drop down to unusable numbers.

    Blend modes with "Force own texture" set on the layer can also have a noticeable impact on performance.