PapitoMyKing's Forum Posts

  • Thanks!, it worked.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I'm getting a json correctly with my scripting code, but I need to pass it to the JSON C3 plugin, to use it on the event sheet, how can I do it? What I'm trying atm:

    async function GetMetadata(runtime) {
     const url = "https://api.helius.xyz/v0/token-metadata?api-key=REDACTED";
    	const nftAddresses = [
     	"BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2",
     	"8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5"
    	]; // Monkes
    	const getMetadata = async () => {
     	const response = await fetch(url, {
     method: 'POST',
     headers: {
     	'Content-Type': 'application/json',
     },
     body: JSON.stringify({
     mintAccounts: nftAddresses,
     includeOffChain: true,
     disableCache: false,
     }),
     });
    
     const data = await response.json();
     console.log("metadata: ", data); 
     runtime.callFunction("GetJ",data);
    	};	
    	getMetadata();
     }

    Tagged:

  • The algorithm works fine, I was mistaken the x axis for the y axis, classic mistake.

  • Hi,

    So I have an array and want to check if the next value is the same as the current one, for example:

    0,1,1,0,0,0

    I need to know that in coordenates x1 and x2, there are two adjacent numbers in equal value.

    This is what I have, but it is missfiring, it is not detecting what I want, what am I doing wrong?

    Thanks!!!

    Tagged:

  • Hi,

    As the title says, a loot of my sprites show artifacts when I zoom out, when at normal scale all looks good. Any solutions for this?

  • Hmmm, I see now, my object is 9-patch, I need to make a sprite out of it.

  • You need to use Button.ImageWidth and Button.ImageHeight in tween actions.

    Button.ImageWidth*1.1 when the cursor is hovering, Button.ImageWidth when it's not.

    Button.ImageWidth and Button.ImageHeigh are not valid expresions :(

  • My reply was actually for PapitoMyKing. I meant to use Btn.ImageWidth and Btn.ImageHeight in expressions instead of Btn.Width and Btn.Height

    Thanks!, I'll try that.

  • Hi,

    I've had this problem for years, and I've just "solved it" with hacks. I wonder what is the proper solution for it. So, I have buttons and I want them to tween when the mouse hovers, and return to normal when not. But, if the mouse moves fast enough, the modified button doesn't return to normal. Here is my logic and a video of the problem. Any ideas? Thanks!

    Subscribe to Construct videos now
  • The array is (10,10,1).

  • Hi,

    I've been trying the CSV plugin, and want to be able to download data as CSV, but I get the "File not available on site" error, what am I doing wrong? Thanks!

    Tagged:

  • I did a MVP metaverse with C3, connected with the NFTs and metamask. I used ethersjs:

    youtube.com/watch

  • Is this a known issue?, it forces my players to use chrome.

  • Hi,

    So I want an enemy to shoot bullets, and that everytime, the bullets gets a different angle. I have this loop and function:

    The wait is working correctly, but the bullets are always firing at 90 degrees with no changes. What can I do?

    Thanks!

    Tagged:

  • There are youtubers paid by Unity to promote their games, tools and marketplace. I don't know Scirra's financials, but having a big influencer behind them would do wonders for the brand.