Input Confusion

Discussion and feedback on Construct 2

Post » Mon Feb 24, 2014 7:19 am

Firstly let me say 'Hello fellow Constructians' and I am finally a proud owner of a Construct 2 license. I have used Gamemaker Studio and MMF2 (was debating upgrading this or Construct).
I have always relished writing stories but thought it might be a good time to try to make something that not only let people read what I write but to experience it. Anyhoo enough about me. :D

So I have just started playing with C2 and was making a simple click to test out an idea. The problem is the command isn't functioning as its suppose to... like wires are crossed. Let me show you what I am working with>>

Image

So the problem is when the Mouse left button is clicked its suppose to do something...but that is not the case. So I was like maybe its the browser I am using and I went over to another browser same thing happened. 'What happened?' you may ask. The click just isn't clicking thats what happening. So I went into the debug mode to see what was going on in the background. Focus my attention on the Mouse response because I was taking it the browsers just wasn't registering the mouse clicks. But I click one time and every time I clicked the mouse click status change accurately as it should. But still the program didn't do as it was programmed to do. So then I double clicked and that was when my program did as it was programmed to do. Every time I double clicked it ran correctly. As you see in the code the condition isn't set for double-clicked its set for clicked. So I change the command to Double Clicked to see what would happen and the double clicked did absolutely nothing. My thing is..is this bug or just me?

I am running this on the recent c2 release last week.
B
23
S
4
G
2
Posts: 364
Reputation: 2,392

Post » Mon Feb 24, 2014 8:46 am

I think I know what you're after. :P You want it like "Hold click onto the button to keep the LBumper and RBumper up, then letting go would reset their angle"? If so, here's an explaination.

Your click events are triggers ("On Click"), this means that those events will run only once, then it gets to Event 3, which resets the angles back to 0.

Try changing Events 1 and 2 from "On left click" to two conditions: "Left click is down" and "Is mouse overlapping spr_LBumperCont". Then remove the "Every 0.25" condition, then move Event 3 above Event 1, so that the order will be correct (It will read if it should reset the Bumpers' angles, THEN it will detect if it is being clicked, and if it is, then reset the angles)

Hope I've understood you and have been of help! Welcome to the community!
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Mon Feb 24, 2014 1:26 pm

Yes!! Thank you!! So the order is VERY VERY crucial.
B
23
S
4
G
2
Posts: 364
Reputation: 2,392

Post » Mon Feb 24, 2014 5:46 pm

There is a flaw in the design.

Instead of using the every 0.25 you should wait in the actions of the mouse click.
B
92
S
18
G
9
Posts: 2,455
Reputation: 15,113

Post » Mon Feb 24, 2014 7:26 pm

Thank you will keep that in mind. :D
B
23
S
4
G
2
Posts: 364
Reputation: 2,392


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests