LittleStain's Forum Posts

  • Why give the timer behaviour to the family?

    Why not to the object itself?

  • Ok, I don't understand why are you setting startbeta to touch.beta every tick?

    Set startbeta to touch.beta at start of layout.

  • The mousecursor should become a crosshair when dragging an object into the layout.

    Are you trying to take an object from one project to another?

    Because then you should just copy the object in the first project and passte it into the layout of another.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, so instead of apply force, set the velocity every tick, like keepee said.

    If you use key is down - set VELOCITY, it should set the VELOCITY every tick and thus the speed would stay the same..

  • Use the system create object action?

    Or do you mean in the editor itself?

    then you just drag it onto the layout.

  • Sine behaviour is what you are looking for.

  • If you use key is down - set speed, it should set the speed every tick amd thus the speed would stay the same..

  • You could just add an event on player destroyed.

    or you could add a system compare player.count is 0

    or put all the events concerning the score in a group and deactivate it in the same event you destroy the player.

    There's probably more possibilities I can't think of in these 5 seconds

    But how could the score go up anyway if the player is destroyed?

  • Another solution would be to have invisible sprites act as collision-boxes. just pin them to the playerobject (probably putting them in a container would be usefull too)

  • system compare two values: score>bestscore : system set variable bestscore to score?

  • could you please try to explai what it is you are trying to do there?

    What is this line supposed to achieve?

    add 1 + 1 * int((text.MaxHp -HP/10) to HP

    text.maxHp, so MaxHp is an instance variable of the text?

    Why not use a global variable MaxHp?

    Why HP/10?

    If I understand what you are trying to do, it will probably be easier to see where you go wrong.

  • Pode,

    After searching for a very long time why your plugin wouldn't work, I found out I had to set Webgl to off. I don't need Webgl in my project, so it's not a big issue, but could there be an issue exporting?

    (I thought I read somewhere some exporters automatically turn on webgl, but can't find the related info anymore)

  • I'm not sure if this will work, but couldn't you create three global variables:

    -startAlpha

    -startBeta

    -startGamma

    and on start of layout set startAlpha to Touch.Alpha etcetera?

    you could also choose to make a button which the player could touch on the moment he or she wants the phone/tablet to be considered straight and set the values on touch.

    after that you should use touch.alpha-startAlpha to get the correct alpha value..

    I would try it this way, but if this works?

  • Just invert the has los event. right-click event in eventsheet - choose invert

  • For fancy menu animations you could try the lite tween plugin from the plugins forum.