Player.Count Coding and Sub-Events

0 favourites
  • 5 posts
From the Asset Store
An educational game for counting pictures. An easy to use template for developers to build larger games
  • 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:

    <img src="http://www.darksunpictures.com/public/Test_Code1.jpg" border="0" />

    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?

  • Scratch Part 2, just found the Advanced Events tutorial.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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)

  • 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. <img src="smileys/smiley17.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)