LittleStain's Forum Posts

  • Displaying more pages isn't hard..

    The way your events are set up is not right..

    Because of the way construct2 works, if you call the function two times in the same tick only the last will display..

    You could try with a number counting up to what part of the conversation your in, but you have the destroying in the same function, which shouldn't be there..

    You probably want to destroy on conversation end, but then you should let the computer know when that is..

    There are multiple ways to set up something like that, but following a tutorial like the one I linked will teach you a lot..

  • Well you are calling both functions the same tick, so ofcourse the second one is executed..

    Putting wait dt inbetween is just postponing the second call a little, so the first one is shown..

    I think you should consider a different way of setting this up..

    Kyatric made this video showing how to create a dialogue with XML:

    it's not the easiest tutorial, but it might give you some ideas..

  • Could it be that has to do with this limitation?

    Limitations

    Note a few limitations on using loader layouts:

    1. Loader layouts are not shown when publishing as native apps on mobile (e.g. via PhoneGap, CocoonJS and appMobi). This is because the entire application is downloaded at once. Since all files are immediately available, nothing needs to be downloaded. For these platforms you probably want to focus on a custom splash image instead.

    From: https://www.scirra.com/tutorials/318/ho ... ng-screens

  • Oh that sounds like a completely different question..

    If you want to save stuff from your game to the web, I guess you'll need a php and mySQL backend..

    Maybe this tutorial can help:

    https://www.scirra.com/tutorials/525/si ... l-database

    or this:

    https://www.scirra.com/tutorials/346/on ... -php-mysql

  • Like game "Monster in my Pocket" u know grab animation walk with this item and throw and kill enemy.

    Yes, so what is so different from my example?

    If you have an animation for picking the item up, you can add it..

  • You want the ship to only destroy when its health is 0

    So I guess that is a condition for destroying the ship..

    Add the condition ship compare variable health is less or equal to 0 to the subevent and attach the actions destroying the ship and going to start...

  • Well, if you have a question, I could give you an answer..

  • Why would a user want to share their name and password with an app that has nothing to do with the site for which the name and password are?

    Sounds like a security hazard to me..

  • Seems like you want to check if the block is overlapping at offset..

    There's a condition for that..

  • Occasionaly.. When is that?

    You have to provide all the conditions for the computer to know when to do what..

    I'm guessing You have no issue getting an enemy to hunt the player when he is shot, because that seems pretty straight-forward..

    What conditions should be true for that enemy to start shooting at other enemies?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That's all visuals..

    For example:

    on spacebar pressed

    set animation to grab..

    Maybe you could add a boolean variable to the player: IsHoldingScrew and set it to true if he is holding it and set an animation based on that variable..

    That all depends on what you want it to look like..

  • right click an event, add subevent..

  • I'm not sure what answer you want..

    With Ajax you request an url..

    On request completed, the return of that url is Ajax.lastdata..

    You can set a text or a variable to that and do anything you want with it..

    there are just two things

    on start of layout

    Ajax request url

    Ajax on completed

    set (text or variable or Array) to ajax.lastdata

  • I guess you want to check ship.health < 0 before destroying the ship..

    If so, add that as a subevent and put the destroy action in there as well as the wait and goto layout..

  • I don't understand what you are trying to do..

    When an asteroid hits the ship you destroy the ship, wait 3 seconds and go to another layout..