OzairP's Recent Forum Activity

  • Are you using events to center your background? Is it on a layer with 0, 0 parallax? Is it a tiled background? We need more info mate!

    I apologize for not providing more info! It was late at night, and I need this game done soon!

    There are no events to center the backgroud, how could I do that? It's on the bottom most layer with the bottom most Z index. It's a sprite image with a size of 5020x1500 (the size of my level). Thank you for the reply.

    EDIT:

    The properties bar

  • Sorry to hear that. I guess I can't help you out on this as I've never used an IOS export wrapper. Perhaps the others with more experience can help you out with this.

    I'm using the HTML5 export, the background isnt scaling on the iPad itself. I've emulated the iPad screen size on Chrome dev tools and everything is working fine there, but when I load it on my iPad is when it doesn't work right.

  • You will need to change the fullscreen in browser settings in the configuration settings area. There is a big chance it has to do with the scaling.

    No, I've tried every full screen mode and they all result the same on the iPad. I've deleted the cache and everything to make sure. I can resize it on my computer and it works fine, its just when I load it on my iPad it doesn't work right.

  • My background is an image, and this is how it is on my computer.

    Vs iPad

    The background is just one big background. Any clues?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I recommend you to not use the 'minify script' option on export. This causes a lot of errors, especially for the cocoonJS exporter. Try to uncheck it and try again.

    Thank you, your solution worked fine!

  • When I run my game within C2 (with the run button), this is what my project looks like

    Completely fine, and working. However, when I export it as an HTML5 game and run it in my local developement server, I get this.

    Nothing works, the event sheets neither. I got this error in the JS console, [quote:2i0ih1l1]Uncaught TypeError: undefined is not a function

    The script is minimized so this is the best I can do.

    How can I export this so that it performs exactly in C2.

  • Bump

  • Hello all,

    I've been searching for quite a bit and I have not solved my issue, this is my event sheet.

    My JSON is

    [["Andrew",100],["John",90],["Austin",80],["Austin",70],["Austin",60],["Austin",50],["Austin",40],["Austin",30],["Austin",20],["Austin",10]][/code:3qlixedp]
    but C2 parses it and puts my array like this
    [img="http://puu.sh/7wKjI.png"]
    Any way I can get it like this?
    
    Array Data
    Andrew, 100
    John, 90
    Austin, 80
    etc?
  • lennaert DatapawWolf

    I added the header to my PHP file, but I've found the origin of error. I checked the JavaScript console and it showed this error.

    XMLHttpRequest cannot load http://ozairpatel.com/api/game/asa/gettopscores. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:50000' is therefore not allowed access. 
    [/code:3mal88kd]
    
    I've uploaded my files and It returned 200 OK, but it would be nice to run it locally, any other suggestions?
    
    EDIT: Okay, so I've just resorted to running my apache server locally and having the ajax url point to localhost, thanks for the help though!
  • Hello all,

    I am a experienced web developer. I created a AJAX event to a URL when the event is trigger the AJAX error function gets called. I checked the network movement with Chrome and I see it heading to the right URL but it's getting 301 headers (Moved permanently)(Also I'm not sure if this is a bug but the call gets repeated about every half a second and it froze my Chrome browser). I open the url it is pointing to (copied it from the network box) and I'm getting a 200 OK message. Any clue what is going on? I checked my page output and this is all that is there

    [["Andrew",90],["John",80],["Austin",70]][/code:1y20b96b]
    No HTML, is that the problem?
OzairP's avatar

OzairP

Member since 15 Mar, 2014

None one is following OzairP yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies