Player.Count Coding and Sub-Events

Get help using Construct 2

Post » Fri Jul 12, 2013 10:56 pm

Hello everybody.

I'm new to the forums (first real post), but been lurking and reading for weeks.

Going over the Ghost Shooter tutorial and the provided version with extra doodads, I couldn't figure out how to replicate the code for:

1) System->Player.Count=0

Via what function/how is Player.Count accessed?

2) In the following code sample:



The system condition with player count is a sub-event which automatically seems to function as an AND condition. Is this the only function for sub-events? Can they run chain style or as an OR or IF? What would be the code examples?
B
23
S
13
G
10
Posts: 150
Reputation: 7,579

Post » Fri Jul 12, 2013 11:07 pm

Scratch Part 2, just found the Advanced Events tutorial.
B
23
S
13
G
10
Posts: 150
Reputation: 7,579

Post » Sat Jul 13, 2013 3:33 am

Sorry.

Shameless bump.

Anyone?

If it wasn't clear, I basically have no idea how to code:

System-> Player.Count=0

I looked at every function available under system and nothing matches, so how would I replicate this in the event sheet?

It's not a global variable, so must be something built in.

Pure noob question, just no idea what I'm missing.
B
23
S
13
G
10
Posts: 150
Reputation: 7,579

Post » Sat Jul 13, 2013 4:40 am

I think .count is common to most objects so if you look for Conditions->System->Compare 2 Variables you should be able to just type it out.

(https://www.scirra.com/manual/133/common-expressions)
B
9
S
2
Posts: 58
Reputation: 1,416

Post » Sat Jul 13, 2013 4:48 pm

Yup, thank you.

I did figure it out yesterday.

Basically noticed you can double click on existing conditions to figure out the code.

A bit of egg on my face, but I'm ready for more.
B
23
S
13
G
10
Posts: 150
Reputation: 7,579


Return to How do I....?

Who is online

Users browsing this forum: BloodFoxStudios, oosyrag, waguilar and 12 guests