PapitoMyKing's Forum Posts

  • You are off-by-one. Your grid is 20x15, which would be 0 to 19, 0 to 14. You have to include zero in your count.

    Thanks! It's working now.

  • Hello!,

    So I'm making a snake like game, and there seems to be a phantom row and column off-screen, where the snake can stay hidden.

    I want it to be that as soon as the 1st head leaves the screen, it appears on the other side.

    https://dl.dropboxusercontent.com/u/20062568/sg.capx

    Thanks!

  • PapitoMyKing - No, you will still have to face your nightmares XD . But do not worry for WebGL 2 is coming to improve HTML5 gaming performance.

    ...sigh, I'll be on the sweet wait then, like pregnant women...

  • Hi guys,

    Any word if C3 will be able to export the games directly to android/ios? I can't take the nightmare of XDK, phonegap and cocoon anymore. And I don't want to switch to Game Maker, it is ugly, non-intuitive, and the UI is doo-doo.

  • Search databases, servers, and php tutorials.

    Thanks, I'll take a look.

  • Hi!,

    Ok, so I have a potential client that wants a simple game. He wants to give rewards to the people who get the highscore on each month (highest score of december, then january, etc.). He wants the game to store the player's email as well.

    So, we need to store emails, and sort the scores by date.

    Is this possible on facebook and google play?

    I have understood that facebook only lets you see your friend's score. And I don't think google play lets you sort the score by date. What solution or workaround is available?

    Thanks!!!

  • From the manual:

    "If a layer's Global property is set to Yes, then every layer in the project with the same name is overridden by that layer. The initial objects, as well as its properties, are used instead of the other layer's own content and properties."

    to have objects on the layer keep their values etcetera, you have many choices..

    Global variables, Global objects and saving to local storage, are the most used..

    I see, thanks for the reply! I'll try one of those options.

  • Hi!,

    So, I have a global layer (which is the menu of the game). When I buy an item, I make its sprite spawn in the menu. When I move to another layout, the item is not longer there, the global layer has reseted!

    Yes, the global layers are named the same, and are at the same position on every layout.

    Thanks for the help.

  • Same issue here

  • Like I said..

    If you use Player.8direction.movingangle it should work..

    system is within angle : Player.8direction.movingangle is within 5 of 90 - play animation "down"

    This was totally the solution. Thank you man, and sorry I didn't understand earlier.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Like I said..

    If you use Player.8direction.movingangle it should work..

    system is within angle : Player.8direction.movingangle is within 5 of 90 - play animation "down"

    But it doesn't... can you take a look at my event sheet and tell me if there is something wrong, here it is

  • why not just set your animation on key press ?

    if key down pressed set animation down

    if key right pressed set animation right

    etc

    ?

    I tried that, but if I'm pressing up, and then press right withou letting go up, the player would move up, but the animation would be facing right, and it looks worse than my current situation

  • I'm not sure what you mean by "Player at 0 degrees"

    Are you comparing : Player.8Direction.MovingAngle ?

    Hi!,

    Here is a video of my event sheet. I don't know how to put pictures here <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

  • Hi,

    I have my animations set the following way:

    -When 8 direction is moving:

    Player at 0 degrees, animation to right

    Player at 90 degress, animation to down

    Etc

    But if the player is touching a wall, then the animations don't change. Here is a video of the issue:

    https://youtu.be/mRqSGUHPJUY

    What am I doing wrong?

  • Because the platform behaviour does not play nicely with other behaviours (other than solid, of course). There's a push-out-from-solid plugin that you might find helps here (just search the add-ons forum).

    Thanks man!

    For whoever is haveing the same problem, here is the plugin: