LittleStain's Forum Posts

  • Would it work for you to create a global variable and set it with the door variable and use that to set player position in the next layout?

  • As the bounce is based on the speed it hits the shield if the shield interupts a bounce it's bounce will be smaller.

    Maybe you could set elasticity to 0 and have an impulse applied at every collision to make sure every bounce has the same bouncing speed.

  • Depth of field is a 3D concept, I'm not sure how you would want to incorporate it in 2D.

    Howerver using webgl effects you could blur a layer which you could change through events.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I guess you are using load from url, so probably you are loading all jpg's into the same sprite and the same frame of the sprite like in this topic:

    load from url

  • This can all be done in events.

    C2 is optimized for creating games, there are many other programs probably more suitable for what you want, but if you want to make it with C2 you can.

    For what you are asking I would use the intel XDK. But it could be you want specific function having to do with game-creation.

  • It seems like lennaert made exactly what you asked for.

    You only need to tweak it a little bit.

    But if what he made is not what you are looking for, please explain what is wrong with his example.

  • change the is on screen to on created, then you can remove the trigger once and the stop loop for they are not needed.

  • Create a global variable GRAVITY

    every 5 seconds set GRAVITY : 1-GRAVITY

    if gravity is 0 - turn of gravity

    trigger once

    if gravity is 1 - turn on gravity

    trigger once

  • I don't see what is hard about my way..

    Easiest way would probably be using the moveto plugin from the plugin section. That way you don't have to think at all. Just set moveto destination to purple.x,purple.y

  • It would help to know what kind of app you'd want to make..

    If you have specific questions the manual, tutorials and forum-seach are at your disposal.

  • seems like you need to read up on how picking objects works. There are some great examples in the FAQ.

    It's all about telling the computer which turret or bullet should react to the event you made.

  • I would create a group called FalseDrop.

    on drag and drop drop is not overlapping - set group FalseDrop to activated

    and in the group:

    arrow is not overlapping purple

    -arrow set x : lerp(arrow.x,purple.x,0.5*dt)

    -arrow set y : lerp(arrow.y,purple.y,0.5*dt)

    arrow is overlapping purple set group FalseDrop deactivated

    ofcourse you'd have to play with the value of 0.5*dt to find out which speed you'd like.

  • That's because you shouldn't scrollto textbox as you can clearly see.

    The textbox origin point is in the upperleft corner, so if you scroll to that the upperleftcorner will be in the middle of the screen.

    So where do you scroll to? Well it seems like the x-coordinate should be in the middle of your layout.

  • sorry spoke too soon..

  • Create hitbox (if the enemy is in a container the enemy will be created too)

    Enemy on created - pin to hitbox