dop2000's Forum Posts

  • Wossi

    The player was falling through the platform because you were moving the platform with Sine behavior.

    What I'm suggesting is that you use Sine behavior only to calculate the value. And then use this value to move the platform with Physics action "Set velocity".

    Pin is also a non-physics behavior and you should avoid using it with physics objects.

  • You can use Physics->Set velocity

    It's almost the same as setting Bullet speed, only it works correctly with physics objects.

    For sine movement you can add Sine behavior, but select "Movement=Value only" in properties.

    Then on every tick do Physics->Set velocity to (Self.Sine.Value)

    Alternatively, you can move your platforms using forces, impulses, gravity, linear damping etc.

  • You can change Vector X and Vector Y.

    Here is the easiest (but not very good) way to slow down vertical speed:

    On every tick-> Character 8Direction Set Vector Y to (self.8direction.VectorY*0.9)

  • blackhornet

    Thanks! I spent a lot of time searching for this setting and finally decided that it must be a bug

  • You mean the "Add action" line is missing, as on this picture?

    I think it's a C2 bug, I've seen it in one of the projects.

    To add more than one action, you can copy the existing action, paste it several times with Ctrl-V and then change pasted actions.

    Or try creating a new Event sheet and move everything there.

  • Couldn't the in-browser AJAX still be manipulated? (this is what I was talking about when I said I know some but not enough)

    Yes, AJAX can be manipulated. But without the correct hash key hackers will not be able to re-calculate the hash for modified data. And when you check the hash on the server, you'll know that the data has been tampered with.

    Of course you need to use the same key and hash algorithm in the game and on the server.

  • You can encrypt or hash the data you send.

    Here is the Hash plugin for C2:

  • You need to save the time when typing starts in a variable: gameStart=time

    When the last correct character is typed, you can calculate the speed:

    speed= (number of characters) / (time-gameStart)

    Multiply it by 60 to get characters per minute.

    If you need to count words per minute, this might be a little more complex.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • COGames

    Have you tried this? It works for me.

  • https://www.scirra.com/manual/126/system-expressions

    Abs basically removes negative sign from numbers.

    abs(5)=5

    abs(-5)=5

  • Yes, there is a similar concept in C2 - Families.

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

    Among other things I increased LOS range, otherwise enemy never has LOS to Jeff. Now it's chasing Jeff straight away.

    Angle 0 in Construct2 is at the right, so all sprites should be facing right, that's why I turned your EnemyAI image.

    Also you are using tiled background wrong. You should not have hundreds of instances of tiled background! Just put one instance on the layout and resize it.

    If you want different tiles with different grass, use TileMap object instead. But again, you need only 1 instance of tilemap with 300 tiles, not 300 instances with 1 tile each <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • When Shift is down, you can't use LastKeyCode as it is, you need to modify its value.

    Here is a small demo I made, hope you find it useful:

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

  • ...and now your link is invalid (shortened).

    Try posting it without the "https://" part

  • I meant your capx file, not the preview..

    Could you at least post a screenshot of your event sheet?