dop2000's Recent Forum Activity

  • Don't change its Y velocity.

    Why do you need Physics?

  • I would suggest using another behavior, but if you absolutely need Physics, you can set velocity instead of applying force.

    Is key down: Object set velocity X to 100

    Else : Object set velocity X to 0

  • You don't need to go through all values in the array. Say, if there are 100 objects and 5 lines, "For each XY" will process all 500 cells, you don't need that.

    You loop through records of objects, which are on X axis. And for each object you can grab values form the corresponding cells on Y axis.

    For example, if you need to get a value from the second line (Y=1):

    Array.At(loopindex, 1)

    or if you are using "For Each X":

    Array.At(Array.CurX, 1)

  • If there are only tree possible values, then a permutation table is an overkill. Here is a much easier solution:

    | Global number num‎ = 0
    
    + System: Every tick
    -> System: Set num to num=0 ? choose(1,2) : num=1 ? choose(0,2) : choose(0,1)
    -> Text: Append num & " "
    
  • It's difficult to understand that garbled code.

    I would suggest using "For Each X" loop, nor "XY".

    Or use the System For loop:

    System For "x" from 0 to array.width-1
    .. Create object Array.at(loopindex, 2)
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First you push a value (zero for example), then change it to an object using "Set JSON" action. I also suggest storing the string in a variable, then you won't have to duplicate all quotation marks.

    local variable jString = {"instance_iid":9, ...}
    
    JSON Push back 0 to ".workstations"
    JSON Set ".workstations." & (JSON.ArraySize(".workstations")-1) to jString
    
    
  • only for the specific chat history?

    Yes, only for this chat.

    is it possible for anyone in the world to ask ChatGPT about Construct 3, and ChatGPT will remember its training?

    No.

  • What behavior are you using - Physics?

  • Don't use triggered events like On Tap or On Touch, they run only once.

    Use conditions like "Is touching object", which run continuously.

  • Z is another dimension, you probably don't need that here.

    Yes, you can store other data about each object at Y=2, 3, 4 etc.

  • Change array height to 2. Then you can store JSON string at Y=0 and object name at Y=1. Something like this:

    For each SpriteFam
    .. Array insert SpriteFam.AsJSON at index 0
    .. Array set value at X=0, Y=1 to SpriteFam.ObjectTypeName 
    

    To restore:

    Array For each X
    .. Create object by name: array.at(array.curX, 1)
    
    .... (sub-event)
    .... System Pick Last Created SpriteFam 
    ........SpriteFam set from JSON array.curValue
    
dop2000's avatar

dop2000

Online Now

Member since 26 May, 2016
Last online 10 Mar, 2025

Twitter
dop2000 has 262 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