Why does it call the else function even tho it shouldnt?

Get help using Construct 2

Post » Sat Jun 04, 2016 2:19 pm

Hey, I got an array filled with values. At (0,0) the Value is 1000. The variable pickedCharachter is equal to 1.

http://prntscr.com/bc9am8

and yet it repeats the step 5 times ... i cant explain why. I tested it in debug mode and the value at 0,0 stays 1000 ~ any ideas?

/edit: I just figured out the problem. I need to set the repeat function in a sub-event. Because repeat() for some reason is never true and it always calls the else.
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Mon Jun 06, 2016 1:09 pm

Do you have a debug Text object that outputs player_chat_stats.At(pickedCharacter-1,0) every tick?
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"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
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: BiffanyPFH, dop2000 and 25 guests