Waltan's Forum Posts

  • Edit: i'll try to make an example .capx if i have time, ok?

    Sure.

  • I suggest you to save a hash.

    And then, within AJAX, you get the player info indexed by this hash ;)

    That's what i'm doing...

    Can you tell me more or just show example?

  • It seems to me that simple WebStorage is not safe for protecting game information (points, level progress, etc.). Because anyone can open game in Google Chrome, press F12 and edit whatever he wants!

    ( Sorry if this has been Privacy information :P )

    So I want you to ask about some methods to avoid editing that information by user.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just tested that out. If you set an event for the player to match y vector on collision with the platform it works perfectly. I did have to add 8 direction to the platform to do this, but setting

    Sprite on Collison with Sprite2: Sprite set Platform Vector Y to Sprite2.8Direction.VectorY

    Fixes the problem. Thanks for chiming in Kiyoshi! I hope this helps Vladoss!

    Can you share .capx with me? :P

  • Ah, there are a couple of reasons this is happening. Notice how the character is "hopping" in place as the platform moves down? You cannot jump if your character is still "falling". This happens because the platform is moving too fast for your character. Set the platform event to move 0.3 pixels instead of one. You'll see this fixes the error. Also, I'd recommend giving the platform a movement behavior so you can control the movement easier.

    I am afraid that I needed just such a speed and even more.

  • Screen Shot

    Here is a screen shot of the player standing on the platform on my end using the capx you first posted. I'm not sure why the player is falling through on your end, but it's working fine on mine. Have you changed anything since you first posted the capx?

    Okay, and when he is standing on platform try to press jump.

  • Just tested it again and it seems to be working fine on my end. If the player jumps above the collision mask, he stays on the platform. I'm not sure what is causing the error on your side. I'm using Google Chrome 17.0.963.56. Did you update to the 18beta branch?

    <img src="http://screenshot.su/img/3d/ed/60/3ded60c0a0797c6fbc9e7ccd583a0014.jpg" border="0" />

  • Odd. I did not see this error when I tested your capx. I am using Chrome and this did not happen once. Are you using a different browser? Is it updated?

    It's chrome and it's updated.

  • Played around with your example. I can see that sometimes the player will fall off of the edge of the platform or jump through it. I corrected this by adjusting the Collision Polygon of your moving platform. Just bring the edges out and it works just fine. Easy fix!

    The problem is not in the collision.

    The player standing on the platform is in the fall and can not jump on it.

  • Guys?

  • Why when the character is on the moving platform he is always falling and how to fix it?

    .capx

    Thanks.

  • vladoss

    Instead of destroying and re-creating the coin you can just use the "move to layer" action.

    Then here is the math you're looking for to move the coin to a location on the parallax 0,0 layer that is visually the same as the scrolling layout.

    coin | set position to (self.X-scrollx+WindowWidth/2, self.Y-scrolly+WindowHeight/2)

    That's exactly what I needed! Thank you!

  • why dont you spawn the coin on the layer that uses the right paralax setting?

    What do you mean "right paralax setting"?

  • I think that all of you have seen this effect in a platformer games.

    When player touches the coin, it begins to move the coin's counter.

    So i tried to make something like this and it didn't work %(

    Here is my events:

    <img src="http://s2.ipicture.ru/uploads/20120217/TUK97g86.png" border="0" />

    The problem is that when player contact with the coin, this coin is removed and new one created on layer "interface" in which parallax = 0.

    So i need way to express coins coordinates relative to the "interface" layer.

  • It's another thing on our todo list, I didn't think it was such a big deal since you can use groups. But it's on the todo list anyway.

    In what part of todo list it's situated? c: