Cameron9990's Forum Posts

  • You'll need to look for a specific bit of information (card price) in a large html, it can be challenging.

    https://en.wikipedia.org/wiki/Web_scraping

    I asked someone how they do it for their website and this is what they said to me

    "I actually get the prices manually from the seller page and then process the CSV file. It does not require a key, but I think it might require being a seller with a certain number of sales."

    I don't know if this can also apply to construct or not.

  • Do they have an API? If not, scraping the prices from the website may be quite difficult.

    Looks like they have, but not accepting new users:

    Difficult? How so?

  • Try this:

    Sprite: Load image from "https://corsproxy.io/?url=https://samplelib.com/lib/preview/png/sample-bumblebee-400x300.png" (Resize to image size, cross-origin anonymous)

    Note that the TCG website may have policies that prevent downloading their content directly. You may need to use a CORS proxy, as in my example. The best solution is to avoid loading cards from an external server altogether - keep them in your project or host them on your own server.

    Thank you, I moved it over to a discord message and it worked, I'm now using the CORS thing and it's also working, I appreciate it. Do you know the solution for my other question though?

  • This should work:

    Apparently that makes it rotate around the center instead of the point of origin, weird. I wish there was just a way to do it outside events, now in my editor there's just a long bar going through the middle, but it is what it is I guess, I appreciate the help.

  • Use the AJAX plugin to query TCG's API and use the Sprite plugin's load image from URL action.

    How do I do that with AJAX. Also, not really getting the sprite thing to work, did I do it wrong? (I did also tested it on Anonymous)

  • It’s a dom element, so you can use any css you want to style it, including rotate it.

    https://www.w3schools.com/Cssref/css_pr_rotate.php

    Dom elements have a set css action you can use to do that.

    Didn't do anything

  • No seriously, I was going to use the slide bar as a scroll bar... but then I couldn't find a way to rotate it... is there really not a way to do that? It seems like a kinda odd thing to restrict on something that's kinda just there to help with quicker lower quality projects.

  • I'm making a pack simulator for a card game and there's two things I want to do. One is to call price information from a website. TCGPlayer is a common website for most people that play TCGs competitively in America and they have a market price listed. I was wondering if I could link that number to something in game to keep the price updating. Another thing is possibly making my sprites called off from images on websites. The people that make the card game I'm doing this for keep high quality images of all their cards on their website. Which is a good thing for quality, but unfortunately would make this project take up a load of storage. So I was hoping to call the images off their website, and not have to use AI to reduce the quality of every last card.

  • On average, in terms of storage space, is it REALLY that much more storage efficient to use different sprites on the same object as apposed to a bunch of separate objects? (I'm making something for a card game that'll probably end up having like 15k sprites, everyone keeps telling me I should be using one object for the card and just a ton of different sprite frames for the different card as I'm currently using like hundreds of objects and it'll only go up as I get closer to completion)

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Which option? Creating from the list of objects, or using scripting?

    Oh, I thought you were trying to say how I could spawn each item anyways. Also I'm already like one-thousand in, either way I'm a bit too far for me to just delete everything.

  • > 15k object in the family

    That's a bit insane. I would definitely combine these objects into sprites (as separate animations).

    It's fine for my understanding of how to make stuff. They're all separate items but share a family. I need them to all hold individual variables and dictionary info per item, so I'd have no idea how to do that with individual frames. It's for a trading card game that already exists and has around 15k cards. That's why I said when it's done.

    Also sorry, was that you saying how to do it? I'd understand a lot easier with the event sheet, I'm more of a visual learner.

  • Pretty much, I want some line of code that would be able to spawn 1 of each object in a family without it already being in the layout (it's 15k object in the family once I'm done, so no, not one at a time). The way that I'm currently doing stuff is taking up way too much space and it would be a lot easier than having each object preloaded in the layout.

    Tagged:

  • I'm talking about [outline=#FFFFFF], with a lot of text sizes it can kinda make the text just unreadable because the white outline is too thick making the black part of the text too thin, is there a fix for this?

    Tagged:

  • rgbEx works in the range 0-100. If you want an expression that works in the range 0-255, use rgbEx255. See the documentation in system expressions.

    Actually, that did the same thing but now if Blue is the last one I make 0 it makes the color Green... that's all it really changed.

    Edit: I made them Global Variables instead of Local and it fixed it, my bad.

  • rgbEx works in the range 0-100. If you want an expression that works in the range 0-255, use rgbEx255. See the documentation in system expressions.

    First time I've ever had a mod respond to me, I appreciate that. While you're here I have one last question. Is there a way to spawn every object you have in a family on start of layout if they weren't on the layout before? I have a different function to rearrange all of them to the right place, I just don't want my layout to be like... 200,000 by 5,000