ClocksTNW's Recent Forum Activity

  • Hi all,

    Thanks a lot for the help, although I don't think my problem is solved. I might not have been clear in my issue. I now understand the way Construct 2 reads events/actions, but I'm still at a loss for a solution.

    The FIRST time I click "okay" I want X things to happen. The SECOND time I click "okay" I want Y things to happen. I tried to solve this by creating an integer value (or an instance variable) that would keep track of the # of times the button was clicked. I tried to say "The first time its clicked, do this, add 1 to #times clicked." Then I wanted to have a code that waits until the second time the button is clicked. I tried to do this by creating a separate event "Button on-click" and adding the condition "#timesclicked = 1." I'm beginning to think I need to make a new button that also says, "okay" just so this program can differentiate between them... that way I can say when "Okay1" is clicked do Y.

    I'm definitely not having problems adding or setting integers...

    Thanks!

    Edit: I also don't see a Wait for Condition option... otherwise I could wait until someone touches the button?

  • I want the conditions on Event 4 to be true, but I want it to wait until I hit "okay" a second time. What's the point in having a button "on-click" event otherwise? Right now, in Event 4, "on-clicked" plays absolutely no role in the code!

  • Also, when I add the event "Button on clicked" and then look at it again, it immediately treats it like a condition... what program changes events to conditions and gets away with it?!?!?!?!

  • Okay, this is incredibly frustrating and there's no way my code or conditions are wrong so I'm beginning to think Construct 2 is bugged.

    Here is a screenshot of part of my code.

    <img src="http://i44.tinypic.com/27ymh5.jpg" border="0" />

    The FIRST time a button is clicked, it adds +1 to the integer value in the dictionary.

    The SECOND time its clicked, its supposed to run actions at the bottom (which I've deleted out to save time and space.)

    Unfortunately, the first time the button is clicked, it runs all of those actions, completely disregarding the condition that ButtonClick MUST = 1.

    In other words, ButtonOkClick becomes 2 with just one click of the button, which is not what I coded, and not what I see on the screen. Solutions?

    Thanks in advance!

  • Here's my new code... pretty pumped about it

    <img src="http://i42.tinypic.com/sfiayu.jpg" border="0" />

    Basically, every time one of the buttons is clicked it becomes highlighted, and the other ones appear to deselect. I still haven't found a way to select every button that's NOT selected, but shouldn't be too hard to figure out. The real version of Construct 2 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> free

  • Hahaha wow! That makes a lot more sense... Thanks for the link to r134, I couldn't find it anywhere. I'm pretty excited to be able to use object families, after fiddling with the program forever... As you can see, I have been messing around with animations/setting animation speeds to 0.

    Thanks again

  • Also the background moving thing... I'll figure that out... that's definitely not right the way it is though

  • Hi Nimtrix,

    Thanks for responding, I haven't bought Construct 2 yet, so I have the r132 version. I know how to use variables, I'll try to be more clear.

    <img src="http://i39.tinypic.com/2jam835.jpg" border="0" />

    I'm wondering if I can combine the events to

    "Generic sprite is touched"

    If sprite = Button(x) then set variable =(x)

    Actions

  • "My God, this guy is still posting?!"

    Is there a way to disable and enable triggers? For example, if I wanted to ask a person if they are SURE they want to buy something, and I have a "Yes" button, is there a way to start out with all of the triggers responding to a "Yes" button click disabled, and then when the time comes, enable one of them to respond to the action appropriately? So if one of my questions is "Do you wanna see a movie?" and the next is "do you think I'm good looking?" is there a way to have the same button respond differently?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not trying to be like this, but how come there isn't a "Run this trigger" option? How come we can't name triggers?

  • Hey all,

    In some ways, I find the GUI system in Construct 2 extremely taxing - I want to make a simple trigger:

    User is touching Button(x),

    set value of y to (x)

    Then:

    all the other actions I want

    Instead, I'm only finding a way to make 3 separate events,

    "If user is touching Button 1, then set value to 1

    If user is touching Button 2, then set value to 2

    If user is touching Button 3, then set value to 3

    Then (separate trigger?!)

    User touches Button 1

    User touches Button 2

    User touches Button 3

    Actions:

    All my actions"

    Is there anyway we can just... code? If I use Java, can I still export the code into an iOS app? I think we should have a lot more options for the conditions- we should be able to say "Generic sprite selected" and save values to the Dictionary by the name of the sprite, or, at the very least, be able to carry out multiple actions based on the condition of the sprite being interacted with. I looked at Ashley's if then else guide, but it didn't help or work when I tried to implement it.

    Thanks a lot!

    -John

ClocksTNW's avatar

ClocksTNW

Member since 20 Jun, 2013

None one is following ClocksTNW yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies