Invert - Collision with object

Discussion and feedback on Construct 2

Post » Fri Oct 14, 2011 11:27 pm

Hi Ashley

Congratulations for the speedy CONSTRUCTion of this software.

Is it possible to have CONDITION - "On Collision with another Object"
be able to Invert?.

Cheers
B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Post » Fri Oct 14, 2011 11:29 pm

Couldn't you just use an inverted Overlap condition instead?
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Fri Oct 14, 2011 11:43 pm

Hi Sully

I have a animation of a bandit "Standing" & "Sword Fighting"

He is standing, and when my player makes contact I change the animation
to "Sword Fighting" this works well with contact, but does not work with
overlap as the Bandit goes from standing to fighting within a micro
second and it looks odd.

This would work if I could use an Inverse of Contact.

Cheers
B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Post » Fri Oct 14, 2011 11:45 pm

On contact, set variable "Contact" to 1.

If not overlapping, and Contact = 1, then set it to 0 and change animations.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Fri Oct 14, 2011 11:46 pm

My meaning is clouded "It goes from Standing to Fighting and is repeated over and over again until the overlap stops.
B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Post » Fri Oct 14, 2011 11:54 pm

How do you want it to work? After contact with the enemy, do you want the animation to play only while in contact, or do you want it to play until it finishes and then go back to standing?

Plus, it might help if you upload your .capx so we can see how you're setting it up.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sat Oct 15, 2011 12:20 am

Jay Jay sorry that method didn't work, Sully only while contact is made.

In this example the Bandit is at the end of the level, press ctrl to
get the player to fight.

At this stage I have used an invisible trigger, so that when he steps backwards he triggers the bandit to stop fighting.

Ashley would still like to see an Inverse of CONTACT.

http://www.hotkey.net.au/~foremost/index.html
B
4
S
1
G
2
Posts: 45
Reputation: 1,365


Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans and 7 guests