cannikon's Forum Posts

  • 10 posts
  • Pretty obvious but i just didn't come to that idea.

    Thanks a lot to both of you

  • thanks again but sadly this also did not work :(

    i have just fast created a new capx with just this problem to show and make it clear.

    dropbox.com/s/elyevl9rhg1kt7j/test.capx

    hopefully now a solution will be found

    thanks forward

  • at first thanks a lot for the answer.

    Unfortunately changing the overlapping like you said didn't help.

    With the "after all were pressed at the same time, the frame just jumps back to 0 again when all aren't pressed any longer." i tried to describe the following issue:

    If i just press one switch (by overlapping it) everything works fine (it changes the frames from "pressed" to "unpressed" just as it should.

    When other switches get pressed while one is already pressed they all change their frames to "pressed" (so far so good), but when one of them then isn't pressed any longer, while one or more others are still pressed, it doesn't change its frame back to "unpressed".

    Just when all switches aren't pressed any longer, they all change their frame back to "unpressed" at once.

    i hope it helps <img src="smileys/smiley5.gif" border="0" align="middle" />

  • i edited my post to make it simpler to understand.

    please help !!

  • is there anyone that could help me ?

  • Hey Everybody,

    I've got a probleem in my game that i can't figure out how to solve.

    So I'm hoping that some of you could help me.

    when something in my game is overlapping one switch it gets frame 1

    and if not it has frame 0.

    That works for one instance but if I've got more its causing problems.

    after all were pressed at the same time, the frame just jumps back to 0 again when all aren't pressed any longer.

    here's the code example -i hope it helps.

    dropbox.com/s/320mu0amfaeac62/code.PNG

    please help me i just can't find out what the problem is.

    <img src="smileys/smiley18.gif" border="0" align="middle" />

  • sorry for the late answer but i wanted to thank you - that part now seems to work.

    Even though there is another part that has something to do with it and that is causing problems now.

    If all the switches that are connected are pressed (a local variable gets changed) and because of that a block appears, but when one of them isn't pressed any longer the block is still there.

    just when all switches aren't pressed anymore the block dissappears again.

    What i want though is that the block is there just as long as all switches are pressed.

    here's the code example i hope it helps to understand what i want to say:

    dropbox.com/s/t258mx2vzvrwb3f/code%20example.png

    I thought it's better to ask it here at this topic because it is somewhat connected than creating another topic - i hope that is ok :) .

    It would be veryy great if someone could help me

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hey everybody,

    i just wanted to ask if it's possible to have the for each loop just used for the objects that fulfill the right conditions,

    because i wanna have a variable by all of the objects checked that meet the conditions, and if all of these objects have the same value sth. happens.

    i hope it is clear what i'm trying to ask ^^.

    greets cannikon

  • ok thank you both for your great and especially super fast answers ^^

  • Hi,

    first of all sorry for the not really clear title but i hope you will get what i mean.

    i'm currently doing the menu for my game and wanted to ask you something about the code:

    dropbox.com/s/t258mx2vzvrwb3f/code%20example.png

    I know that this can't work because right after it sets the sprite to invisible it gets "detected by the next condition" and set to visible again because the key was released before.

    But what i want is that with every press of the button the sprite gets visible if its invisible and if its already visible it gets invisible.

    so I wanted to ask if there is any action that "says" start reading the code from above again without looking any further in the code, so that i can place this action right after the set visible/invisible action.

    I hope i could point out what i meant<img src="smileys/smiley5.gif" border="0" align="middle" />.

    greets cannikon

  • 10 posts