Cameron9990's Forum Posts

  • What’s amiss with the image? I’m not able to follow what you see as an issue.

    Should both gears have their own outline instead being outlined as if they were merged first? That would mainly be a matter of adding the effect to the objects individually instead of the layer.

    Otherwise I’m not sure what you’re describing.

    Sorry, I was away for a bit, the issue with the first image before the game was maximized can be found in the top right of the image, the issue with the other one can be found in the bottom right, when the game was maximized. It's like outlining the sprite as an object instead of just the image, and it changes depending on if it's full screen or not. (You might be confused because of the background image, but even then they look out of place, I can get some more images if you'd like)

  • I'm having an issue with this plugin, I've heard it's the best one for this so I'm hoping for a fix or for one to magically work better. Basically for some of my objects, depending on where the object is placed, and whether or not my window is in full screen mode, it'll just add a bit of the outline to different parts of the object as a whole as apposed to just the art. I even changed the hitbox on the object and it's still the outline. I'm very confused as it even looks like this in the editor and I really don't know how to fix it. Can someone please help me.

    Tagged:

  • Then you need an API access.

    You can probably try scraping prices from their website, but it will be difficult and slow and your app/ip may get banned.

    I see, then I guess it's not too important, I was just hopeful since it's a feature pack openers for other card games normally have, but that may be different for a website as apposed to a game. Just wanted it to feel professional.

  • How often do you need to refresh the prices in your app? Every day? Every hour? Or do you always need to display the most accurate real-time price from their website?

    I'd like the most accurate real time price. I'd like to have the listed Market (average of what it sells for) and maybe the listed low.

  • You can of course create/download a CSV file and import it into Construct project. But that would be a manual job.

    Oh that's fine, i assume there's decent tutorials on YouTube?

    Or do you mean I'd need to update each price manually? As long as I don't have to do that one whenever a price change happens I'm chilling.

    Also, let's say I did learn how to scrape it real quick... how does this help me? Like how am I uploading it to Construct and keeping it up to date?

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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:

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