Exceptions (please help)

For questions about using Classic.

Post » Wed Apr 02, 2008 7:58 pm

I am new to the construct and to learn I am trying to make a game for my little sister. one of the things I use is the Drag and Drop behavior and when it goes over the corect spot the draged object is deleated and replaced with a new object without the Drag and Drop behavior on the corect point. While I want it to do this I want to create an Exception or something like it so that it does not do an action while the left mouse button is being held down. and no codeing advise please I have no experience with C++.
B
1
G
4
Posts: 2
Reputation: 1,029

Post » Wed Apr 02, 2008 8:00 pm

1) No c++ required.
2) I don't think I get what you want to do. What is this "Exception" you're talking about? What shouldn't do the action? Can you post an example cap*?

*upload it on mediafire.com
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Wed Apr 02, 2008 8:00 pm

To invert a condition right click on it and select "Invert condition."

This will turn your "Left mouse is held down" into "Not Left Mouse is held down."



[quote="SuperV":20v8zivx]1) No c++ required.[/quote:20v8zivx]

Oh, didn't you know, Ashley's replacing Python support with C++ :P
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Apr 02, 2008 8:05 pm

[quote="deadeye":2qpp2wxv]Oh, didn't you know, Ashley's replacing Python support with C++ :P[/quote:2qpp2wxv]

I'm 75% sure it's sarcasm, even if Ashley's awesome smartness could implement it. 8)
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Wed Apr 02, 2008 8:07 pm

[quote="SuperV":2mcra12g]I'm 75% sure it's sarcasm, even if Ashley's awesome smartness could implement it. 8)[/quote:2mcra12g]









(yeah, it was just a joke)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Apr 02, 2008 8:10 pm

Guess I wasn't clear I want to know how to make it not compleat an action when the left mouse button is pressed.
B
1
G
4
Posts: 2
Reputation: 1,029

Post » Wed Apr 02, 2008 8:10 pm

[quote="deadeye":13n15nmv][quote="SuperV":13n15nmv]I'm 75% sure it's sarcasm, even if Ashley's awesome smartness could implement it. 8)[/quote:13n15nmv]









(yeah, it was just a joke)[/quote:13n15nmv]

Python > C++
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Wed Apr 02, 2008 8:13 pm

C++ is not being implemented in to Construct guys, let's not try and confuse new users ;)
Eventing has very few similarities C++ programming and thus features like exceptions are simply not there.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Wed Apr 02, 2008 8:14 pm

I like C++ becouse its faster but Python is object programming so its easier.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Wed Apr 02, 2008 8:16 pm

Okay, all derailing aside now.

[quote="CosmicBum":oj054kni]Guess I wasn't clear I want to know how to make it not compleat an action when the left mouse button is pressed.[/quote:oj054kni]

If you want to perform a specific action, you need to make an event in your event sheet that defines that action.

Have you read the tutorial? It goes into some of the basics of creating events.

If you have't added the Mouse & Keyboard object to your layout, you won't be able to make events with the mouse. So be sure to add that.

Other than that, read the tutorial on how to make basic events.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests