dop2000's Recent Forum Activity

  • Have you seen the included examples in Construct?

    segmented-boss-fight

    skeleton-hierarchy

  • Organizing events like the first screenshot makes it easier to read the code.

    There may be different actions you want to run in each sub-event.

    Also, you will need to use sub-events if there is an OR-block:

    Condition1
    
    ... Condition 2
    ... OR Condition 3
    
    ........Condition 4
    
  • itemExists in my screenshot is a function. It checks all list items in a loop and returns 1 (true) if the specified item exists. Otherwise by default it returns 0 (false).

    So you can use it in conditions and expressions to check if the list contains an item.

    construct.net/en/make-games/manuals/construct-3/project-primitives/events/functions

  • Local variables inside events is something I was unaware was necessary, nor did the tutorial I was using mention this. The JSON path is also straight from the tutorial, so I am doubly annoyed that it's wrong there too.

    In this case the local variable needs to be inside the function, otherwise two functions will be changing it and the result may be incorrect.

    Also I think (Variable-1) as a return result is wrong, it needs to be just Variable.

    By the way, you can use JSON.ArraySize("Scene") expression instead of those functions. This will return the number of records in the "Scene" array in JSON.

    Same for the number of dialogues:

    JSON.ArraySize("Scene."& curScene & ".Dialogue")

    Layer names in the events were always red, so I went with numbers since the software itself says you can use them- is that not the case?

    Layer name as any other strings in events needs to be in double quotation marks:

    Set layer "Dialogue" visible

    If you decide to add a new layer tomorrow, you will have to update layer numbers throughout your code. With layer names you won't have this problem.

  • There is nothing stopping you from using family I believe.

    Except that families are not available in free version of Construct.

  • There are so many mistakes, I managed to get it working, but just barely..

    1. Events 9 1nd 13 and local variables need to be inside the functions as sub-events, not outside.

    2. You are composing JSON path wrong.

    "Scene"& curScene & "Dialogue" will result in "Scene0Dialogue", which is an invalid path.

    Check out this project, it shows paths to all values and keys in JSON:

    dropbox.com/s/srgf9lme08by9wa/JSON-RecursiveRead.c3p

    Besides, you spell key names differently in every event! In one event it's "dialogues", in another "Dialogue". Double-check the spelling in all events. And JSON keys are case-sensitive!

    3. Parallax on the dialogue layer should be 0x0

    Also use layer names in events, not numbers.

  • I think an array is an overkill here. You can make a function:

  • Think I'll try this developers.google.com/games/services/common/concepts/leaderboards

    I believe this is for Android apps published on Google Play only.

    If you are making a web game or a multi-platform app, you need to look at other services like PlayFab or Firebase.

  • It pauses waits and events like "Every X seconds". It doesn't pause most other events, loops, triggers.

  • Is that screenshot from the array editor in Construct?

    Column names in the array editor are just for convenience, you can't use them in expressions.

    You need to loop through the array on its Y axis, comparing elements at X=0 and X=1 with the instance variables on the sprite:

    For each Sprite
     Repeat Array.height times
     Array.At(0,loopindex) = Sprite.Episode
     Array.At(1,loopindex) = Sprite.Sequence 
     --> Sprite Set animation to Array.At(2,loopindex)
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, you can use this formula:

    Audio Set volume to log10(volumePercentage/100)*20

    Where volumePercentage is a value between 0 and 100

  • You will need several events:

    On Q Key Pressed: start a timer, say for 0.5 seconds.

    On Timer: open menu.

    On Q Key Released and if the timer is still running: stop that timer, and switch weapons.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 271 followers

Connect with dop2000

Trophy Case

  • 9-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

29/44
How to earn trophies