How do I how lose random pkt HP?

Get help using Construct 2

Post » Fri Nov 20, 2015 5:26 pm

how does it work?
B
11
S
3
Posts: 55
Reputation: 802

Post » Sun Nov 22, 2015 8:10 pm

What is "pkt"?
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,349
Reputation: 4,692

Post » Mon Nov 23, 2015 2:25 am

yes, What is "pkt"?
B
28
S
9
G
3
Posts: 280
Reputation: 4,162

Post » Tue Nov 24, 2015 3:50 pm

points hp
B
11
S
3
Posts: 55
Reputation: 802

Post » Tue Nov 24, 2015 4:37 pm

It would be nice if we knew a bit more about your issue, but without further explanation we have to assume this is a variable of some sort..
Losing means subtracting, so..

If it's a global variable the action would be

System subtract from variable : random(100)

if it's an instance variable the action would be

Sprite subtract from variable : random(100)

this will subtract something between 0 and 100
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Nov 24, 2015 5:13 pm

ah i get it ok but when i have HEALTH BAR i lose 90% for first hit (no make randome) i dont know why.
B
11
S
3
Posts: 55
Reputation: 802

Post » Tue Nov 24, 2015 5:26 pm

GibonArt wrote:ah i get it ok but when i have HEALTH BAR i lose 90% for first hit (no make randome) i dont know why.


I don't know why either..
Without seeing your events and how you have everything set up, I don't think anyone can give you an answer to that..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: ijust8, NetOne and 13 guests