dop2000's Recent Forum Activity

  • You can't create image points. At least not with conventional methods, maybe there is an addon for that. You can just use a pair of instance variables to store that "virtual image point" coordinates.

    Detecting the exact point of collision is another issue. I have a demo, but it's quite complex.

    If you explain why you need all this, maybe we could suggest another solution.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why did you create exactly the same post as yesterday?

    What is a dynamic image point? Why can't you just pin one sprite to another on collision?

  • Array Load from AJAX.LastData

    Not from "Overworlds data" or whatever, and don't use quotation marks ("")!

    Look at my screenshot I posted earlier and do exactly the same.

  • Global variables will store values when you switch between layouts, unless you perform "Reset global variables" action.

    If you need to reset most global variables, but want to keep some values, here are the ways you can do it:

    • store values in an array or dictionary
    • you can make a static local variable in an event group. Static local variables are not reset, but you can only access them from within the group.
    • you can create an instance variable on a global object (array for example), or create a dummy object (empty sprite) and set it as global
    • save in Local Storage
  • Yeah, pirates are scary. But you posted a link to C3 editor, and I'm sure pirates know about this link already..

    You need to save you project as a C3P file. Upload this file to Dropbox, Google Drive or similar service, create a share link and post this link here.

  • And another addition, I've done a fair amount already using C3 arrays but I really don't like the way they work. If the stuff gets too complex, it starts to feel like I'm wrestling with C3 rather than coding.

    I agree, that's why I prefer using object instances instead of arrays. A bunch of instances with instance variables basically represent a multi-dimensional array, and it's much easier to work with it.

    For example, if you need an array of football players, create 11 sprite instances for each team (they may be invisible or off-screen). You can define many variables (name, score, salary etc), and then easily do whatever you want with events - pick any player or a group of players, filter them by many parameters, make bulk changes, find min/max values, sort, remove etc.

    If you still prefer to work with Javascript array, you can return its data back to C3 events as a JSON string, but I believe it will not be compatible with C3 Array object. You can load it into JSON object though. Another option is to return a comma-separated string, which you can then parse with tokenat/tokencount expressions, or use CSV addon to convert to array. Or create a function in the script which will update C3 array with the data from your JS array:

    construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/plugin-interfaces/array

  • If it still doesn't work, please post your project file. It's tiresome when you reveal only a small bit of information at a time..

  • If you do exactly like on my screenshot, it should work. Run the game in Debug Mode and check the array contents.

    If it still doesn't work, please post your project file. It's tiresome when you reveal only a small bit of information at a time..

  • No, it doesn't work this way.

    You need to request the JSON file with AJAX first, then load it into the array from AJAX.LastData

  • Search the tutorials section for words like "mysql" or "php", there are quite a few good examples there:

    construct.net/en/tutorials

  • Can you post a screenshot of your event sheet? Or share your project file?

  • I know you are talking about the array, but you need to post a screenshot of your problem because it's unclear what you mean. Array is not a visible object, it's a data structure, it can not be on-screen or off-screen.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

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

30/44
How to earn trophies