LittleStain's Forum Posts

  • and another, is there any way of adding an offset to a "scrollto"?

    You could use the system scrollto action instead of the scrollto behaviour, or you could use the scrollto behaviour on another sprite offsetted to where you'd like..

  • Would something like this work for you?

    keyboard on o pressed : set variable to "p"

  • That doesn't really answer my question, but you could use things like "on keycode pressed" and such..

    See the keyboard entry in the manual for reference..

    A lot of it depends on what you are trying to do and in what way you want to do it..

  • Could you explain what you need it for?

    Is it for typing or for attaching events to the keystroke?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • right click on a point and choose add point..

  • I really don't know how to fix that...

    I don't want to ruin the crawling state and animation of it...

    Any suggestions?

    Didn't I already give a suggestion?

    Oh, yes, I did..

    Another suggestion would be (again) to follow some of the beginners tutorials, for it seems like you still have some issues with the basics of creating games with Construct2

  • You'd want to edit the collision polygon inside the image editor..

  • Like you fix any conflicting events, make sure only one of them can be true at the same time by adding conditions..

    Depending on how you want to expand your events/game you could for instance add a animation is not playing condition to your idle event..

  • For example :

    The conditions of event 6 and event 12 can be true at the same time, and they both set animation..

    So each tick first the animation is set according to event 6 after according to event 12, resulting in displaying only the first frame of the animation set in event 12

  • Ok, checked it..

    You have conflicting events..

  • Without capx or an example of your events your question can't be answered..

  • Without looking at your capx, I'm pretty sure you have a confllicting event-issue..

    More than one of the events setting animation are true at the same time..

    Try to add conditions to make sure only one of the events triggers..

  • Kyatric Thanks.

    I've got a question,

    Would LocalStorage be my best bet for saving things like the users High Score? I've followed the basic tutorial but it seems that there is a slight millisecond delay when the game starts during the time between fetching the LocalStorage key and displaying the amount on screen (as a Sprite Font Text object).

    > On Start > LocalStorage: Check item "highscore_key" exists
    LocalStorage: On item "highscore_key" exists > System: Set HighScore to LocalStorage.ItemValue
    On game end.. > LocalStorage: Set item "highscore_key" to HighScore[/code:1raprmu1]
    
    Is there anyway to make it instant?
    
    Thanks.
    

    Like Ajax, localstorage loads asynchronously..

  • The action sprite on clicked: text set text to sprite.animationframe should work, because you reference the sprite you want in the event..

    Without seeing your capx, with the information you give, it seems like you have problems with picking..

  • I believe it can be done with semi-transparent-shadows and the alpha-threshold effect on the layer where the shadows are..