dop2000's Recent Forum Activity

  • Or change layer interactivity setting.

  • Try setting parallax to 0 in layer properties.

  • When any button is pressed, append it to a string variable. Then check if this string ends with a specific sequence of characters.

    + Keyboard: On any key pressed
     Set keySequence to keySequence& to Keyboard.StringFromKeyCode(Keyboard.LastKeyCode)
    
    
    	if right(keySequence, 4)="1234" ... do something
    
    	if right(keySequence, 5)="IDDQD" ... do something else
    
  • Background1 needs to be above Background2. Or you'll need another copy of Background1 above Background2, on the same layer as the white mask.

    And the green ring needs to be a separate sprite.

  • Array.CurX/CurY expressions only work inside of "Array for each element" loop. You probably need to use X:player.playerX, Y:player.playerY in "Set at XYZ action".

    Local storage simple implementation:

  • how I can make the player's direction value loop from 0 to 3

    You mean after 3 it should become 0 again? You can do this in one expression:

    Set direction to (direction+1)%4
    

    or

    Set direction to (direction=3 ? 0 : (direction+1))
    
  • Pathfinding behavior only works inside the layout bounds, so you need to make the layout bigger. There are a few other issues as well:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No worries! Glad everything is working!

  • No, that's not possible as far as I know.

    The most common solution is to change scaling mode to "Scale outer" and make the UI adjustable (say, using Anchor behavior).

  • My other question here is do I need to create a text object for every separate line? And how do I make it so you can scroll through entries that go off the page?

    Here is a simplified explanation:

    1. Iterate the records in the array. Since they are stored on Y axis, you will need to use a system loop:

    System for "y" from 0 to Array.Height-1
    Array compare value at (2,loopindex)="delivered"
    

    2. For each chat message create a new Text object. Set its text to Array.at(1,loopindex)

    3. Resize the text object to its content - use Text.TextHeight expression

    4. Place each new text below the previous text.

    5. Attach all texts to a scrollable panel.

    6. Use a mask or blend modes to hide the top and bottom portions of the chat when scrolling.

    This will be difficult to make from scratch without any Construct knowledge. Here are some example projects which may be useful:

    howtoconstructdemos.com/scrolling-a-list-of-players-scores-images-etc-example-a-capx

    howtoconstructdemos.com/auto-resizing-speech-bubble-for-dialog-systems-capx

  • You need a second JSON object, say tempJSON.

    How you combine two jsons depends on their content.

    For example, your main json contains books and the second json contains colors. Then you can do this:

    -> tempJSON: Parse JSON string AJAX.LastData
    -> booksJSON: Set "colors" to new object
    -> booksJSON: Set "colors" to JSON tempJSON.GetAsCompactString("colors")
    

    The last action is "Set JSON".

    If both jsons are arrays, then you might need to iterate tempJSON and copy array elements one by one.

  • You have two player instances on the layout, this can cause all sorts of bugs.

    I suggest using the debugger (Shift+F4), it's absolutely essential in a complex game like this.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 259 followers

Connect with dop2000

Trophy Case

  • 8-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
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies