Spike damage problem.

Get help using Construct 2

Post » Fri Aug 14, 2015 1:06 am

How do i Make the player get hurt when he hits the TOP of the spikes? it feels like i've tried everything imaginable.

heres what i left it with:

Image
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 14, 2015 1:21 am

i think that can be related to your hitbox in each of your sprite. The last tool on the image's editor.
B
14
S
1
Posts: 33
Reputation: 1,022

Post » Fri Aug 14, 2015 4:01 am

Tried it, doesn't fix it. anything else?
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 14, 2015 7:24 am

why do you have the player.y>spikes.y ? which is saying is the player below the spikes (as y goes from top to bottom of screen )

If you only have the hitbox over the top section of the spikes is this needed ?

Or are you looking to have a "if character is only falling onto the spikes then damage character ?" (maybe with a character.angle is between 0 and 180 ?)
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Fri Aug 14, 2015 11:14 am

Sometimes when you do compare two values and compares the value of a single variable, whatever its type, the system is in loop?
B
32
S
9
G
3
Posts: 280
Reputation: 4,262

Post » Fri Aug 14, 2015 3:50 pm

RamPackWobble wrote:why do you have the player.y>spikes.y ? which is saying is the player below the spikes (as y goes from top to bottom of screen )

If you only have the hitbox over the top section of the spikes is this needed ?

Or are you looking to have a "if character is only falling onto the spikes then damage character ?" (maybe with a character.angle is between 0 and 180 ?)



I've also tried < and =, but none of them work either.

does anybody know what to do?
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Mon Aug 17, 2015 6:27 am

https://db.tt/E0vxe1VT

edit -

updated (downdated ? ) to version 178
Last edited by RamPackWobble on Wed Aug 19, 2015 11:25 am, edited 1 time in total.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Wed Aug 19, 2015 12:08 am

I have r178. It wont open in mine. I refuse to get the updated ones because the node webkit wont work with them.

Could you snap a screenshot or something of the events?
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Wed Aug 19, 2015 11:20 am

r178 - thats about a year old ? I can't say I have noticed problems with the node webkit. Anyway....

How to open newer versions of capx files

unzip the capx and edit the caproj file in a text editor

find where is says (for example)

<saved-with-version>21100</saved-with-version>

and replace with an older number eg

<saved-with-version>17000</saved-with-version>

save and try

Search the forum for more information about opening newer versions in old versions.

(post above updated)
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Fri Aug 21, 2015 5:16 am

I did it. But i should've mentioned that my spikes are solid. Could that be a problem?
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Next

Return to How do I....?

Who is online

Users browsing this forum: mageekm and 26 guests