LittleStain's Forum Posts

  • You could do it with dictionary objects, setting the text (or spritefont) objects based on a function variable:

    Translation Example

    It's not as hard as it looks..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • One way to split up a string would be to use tokenat(string,index,seperator)

    In the string add a separator where you'd like the newline to be:

    TextVariable = "Hi everyone,\Glad to see you..\Wanna have some fun?"

    on button clicked

    set text to: tokenat(Textvariable,0,"\")&newline&tokenat(Textvariable,1,"\")&newline&tokenat(Textvariable,2,"\")

    the textobject would display

    Hi everyone,

    Glad to see you..

    Wanna have some fun?

    You could also use a for loop from 0 to tokencount(Textvariable,"\")-1 and set an action to append tokenat(Textvariable,loopindex,"\")&newline&

    This all might sound a bit complicated, but when you get the hang of tokenat() and tokencount() , you can do so much with it..

  • My two cents:

    Fake it!

    A lot can be done with animations, maybe using something like brashmonkey spriter to do the bulk and only creating the ragdoll (or just parts) at certain times on impact..

    Full physics body movement is nearly impossible to get right..

  • yeah i solved this problem by changing the polygons collision to default and it works....but dont know why...

    Thanks again for yoru help

    I think I know why..

    Like I tried to explain above, it would be better just to create to objects where you want them to be instead of overlapping..

    Doing things the right way often prevents unexpected results..

  • Correct me if I'm wrong, but it seems to me your bonus-objects have some kind of behaviour attached (solid or a movement behaviour) that pushes them out of solids..

    (I actually see no reason for this, but I might be wrong)

    You are creating them overlapping the ground and so they have to be pushed out..

    Why not create them at the position you actually want them to be?

  • You could add a system wait action..

  • my "ground2" object is spawned by 3 "spawner_blocks2" the bonus is also spawned by the 3 same "spawner_blocks2"

    All I'm saying is..

    Could it be the bonus is spawned by a spawner_blocks2 instance that hasn't spawned a ground-object?

    A random instance of the spawner_blocks2 is picked for spawning the bonus..

    If this instance hasn't spawned a ground2 object at the exact same time, the bonus won't be over a ground2 object..

    You could always choose to have a ground2 object spawn the bonus, that way it would always be above a ground2 object..

  • Would you like the ship to move, the layer to move or the things on the layer to move?

    Right now on double click you are setting the parallax rate of the layer, which won't do anything if there is no scrolling involved..

  • How many spawner_blocks2 instances are there?

    Could it be the bonus is spawned by a spawner_blocks2 instance that hasn't spawned a ground-object?

  • Pixelart usually does best with letterbox integer scale..

    Not really sure if that will work very well on mobile though..

    You might want to implement your own scaling..

  • > You mean "System go to layout"?

    >

    No?

    No?

    Could you give more information as to what you are trying to do, for "restart layout" restarts the current layout and is basically the same as " system go to layout" only referencing the current one as opposed to another one..

    From the manual:

    Restart layout

    Restart the current layout. Note that unlike Go to layout, this action resets all event groups to their initial activation state. Global variables keep their current value - they are not reset. To reset them use the system action Reset global variables.

  • You mean "System go to layout"?

  • Can be made in an easier way, but..

    ..just having some fun

  • Thanks

    On that note I'll add RamPackWobble to the thank you list..

  • Like I said, this is the reason Scirra gave:

    'Session storage' has been removed in the new plugin, since it had no benefits over using global variables and added a lot of baggage.