Lucas Jogos's Forum Posts

  • hello, I would like to know if there is a way to prevent the image from being negative as it is in the image, this is not good, the width is at 0 and it is like this

  • Unless pastebin allows CORS you're out of luck, and it looks like it doesn't. You'll have to find a different place to store your data, could be as simple as a textfile on your own website where you can allow CORS.

    the only site I can have so far is a google blogger, could you teach me how to create a text file and how to loberar cors there?

  • I used pastebin in Construct 2 project without any issues. I think the problem is with preview, it should work in the exported game.

    actually it doesn't work with the exported game either, I published an android version in the play story and it didn't work either

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • CORS problem.

    Hit F12 and go to console.

    Hit your button.

    Here it is

    bootPreview.js:92 Registered service worker on preview.construct.net

    sw.js:562 [SW-Preview] Up to date

    runtime.js:21 [C3 runtime] Hosted in DOM, rendering with WebGL 2 [ANGLE (Google, Vulkan 1.2.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver)] (standard compositing)

    local.html:1 Access to XMLHttpRequest at 'https://pastebin.com/raw/BwFuiN0G' from origin 'https://preview.construct.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

    instance.js:3 [Construct 3] AJAX request to 'https://pastebin.com/raw/BwFuiN0G' (tag 'event') failed: ProgressEvent {isTrusted: true, lengthComputable: false, loaded: 0, total: 0, type: 'error', …}isTrusted: truebubbles: falsecancelBubble: falsecancelable: falsecomposed: falsecurrentTarget: XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}defaultPrevented: falseeventPhase: 0lengthComputable: falseloaded: 0path: []returnValue: truesrcElement: XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}target: XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}timeStamp: 8868total: 0type: "error"[[Prototype]]: ProgressEvent

    _TriggerError instance.js:3

    _OnError instance.js:4

    errorFunc instance.js:6

    error (async)

    (anonymous) instance.js:7

    _DoRequest instance.js:6

    Request actions.js:2

    _RunActions_ReturnValue eventBlock.js:27

    _RunAndBlock eventBlock.js:24

    Run eventBlock.js:21

    _ExecuteTrigger eventSheet.js:19

    _TriggerForClass eventSheet.js:13

    _Trigger eventSheet.js:12

    _Trigger eventSheetManager.js:13

    Trigger runtime.js:89

    TriggerAsync runtime.js:90

    TriggerAsync sdkInstanceBase.js:4

    _OnClick instance.js:3

    (anonymous) plugin.js:1

    (anonymous) sdkDOMPluginBase.js:3

    _OnEventFromDOM runtime.js:16

    _OnMessageFromDOM runtime.js:14

    _PostToRuntimeMaybeSync domHandler.js:2

    _PostToRuntimeElementMaybeSync domElementHandler.js:4

    (anonymous) domSide.js:3

    instance.js:9 GET pastebin.com/raw/BwFuiN0G net::ERR_FAILED 200

    (anonymous) instance.js:9

    _DoRequest instance.js:6

    Request actions.js:2

    _RunActions_ReturnValue eventBlock.js:27

    _RunAndBlock eventBlock.js:24

    Run eventBlock.js:21

    _ExecuteTrigger eventSheet.js:19

    _TriggerForClass eventSheet.js:13

    _Trigger eventSheet.js:12

    _Trigger eventSheetManager.js:13

    Trigger runtime.js:89

    TriggerAsync runtime.js:90

    TriggerAsync sdkInstanceBase.js:4

    _OnClick instance.js:3

    (anonymous) plugin.js:1

    (anonymous) sdkDOMPluginBase.js:3

    _OnEventFromDOM runtime.js:16

    _OnMessageFromDOM runtime.js:14

    _PostToRuntimeMaybeSync domHandler.js:2

    _PostToRuntimeElementMaybeSync domElementHandler.js:4

    (anonymous) domSide.js:3

  • hello, in a game I'm developing I'm creating events and these events will be activated only when a certain value is at 1, but when I ask for ajax nothing happens I can't get this value from pastebin, what's wrong?

  • Ashley could you clarify me please

  • I have looked up tutorial after tutorial about google playstore IAP and construct and it has all totally changed? No one is mentioning it.

    Where I would have been able to setup IAP in the play store console it now says the following.

    "Your app doesn't have any in-app products yet to add in-app products, you need to add the BILLING permission to your APK"

    I am just going around in circles when trying to solve the problem. I can no longer edit or add google IAP in construct 3 like before because of this.

    What do I do?

    you simply export your game normally to .aab with the pugin IAP and then go to your google developer game page and create a closed test version and upload it and ready google recognizes that you have the plugin added now and that's it export to publication version

  • hello guys, i recently developed a game for a friend of mine on c3, i exported it in nw version, when he uploaded the game on the steam store normally, but the game doesn't work on some computers, the game window disappears and the game on steam is running, does anyone have a definitive solution for this error I don't know what else to do since the error is not in the executable but in steam

  • I don't believe this is possible with Construct by itself. You would need a backend service or other online data storage solution, at least enough to authenticate and keep track of each user.

    Generally speaking, every user, upon creating an account, will have a code or link associated with their account in your database. This code/link will be available to the user to share. When a new user enters the code/link in their client, your server will be able to look up the origin account associated with that particular code/link and credit it accordingly.

    Thank

  • one more question, how do I put this txt file on my blog, does the file have to be invisible to the public?

  • You put it on a server (your website), then link to it.

    https://support.google.com/admob/answer/9363762?hl=en-GB

    thanks, but is it really necessary to do this? the admob says it loses a lot of revenue?

  • hello I would like to know how do I embed the ads.txt file in my apps on google play, the admob alerts me that I'm losing revenue because I don't have the ads.txt file in my games I'm losing ad revenue, how do I fix this problem

  • hello, I would like to know if it would be possible to cfiar a system of inviting friends to play my game, like the player invites a friend and as soon as his friend registers with his facebook or google account then the player receives rewards, there would be a way to do this ni Construct ? which plugins to use and how to do it?

  • Thank

  • Hello guys, I have doubts, I would like to know if there would be a way for me to create in-game events and control these events outside the game, like those coin master events that are controlled outside the game, I would also like to know how I can add a count regressive within the game for the player to gain more lives when the counter is zeroed, but this counter would have to continue counting even if the player closes the game would it be possible? would have to control this through some database type, sql ?