RafaelMatos's Recent Forum Activity

  • I'm using AJAX to read some text files but some characters aren't loaded correctly therefore showing this ?. It happens with characters like ª, or º and also with all non english characters like ç, é, ã, etc. Is there a way to fix it?

    Thanks.

  • Here's a playable web build of my pseudo 3D thing if anyone is interested in seeing it in person: https://riv-hester.itch.io/glimmerhead? ... zhsbgRaqhA

    spongehammer Just one layer. For the walls I've got a stack of tilemaps having their position offset in a direction relative to the layer rotation. Everything else is sprites being z sorted.

    Ares7 Not that I know of, but I'd like to get around to writing one at some point. There seems to be enough interest on twitter alone.

    This blog post does explain the basic concept pretty well though even if it's for Game Maker: http://www.like100bears.com/writing/2d- ... ker-studio

    The effect is really cool. I did a while ago the samething for cars but what about that cart? Did you use the same concept of stacking images? Looks really cool.

  • Magistross I managed to do it using 000webhost. I uploaded a txt file and changed the permission to read and write for "others". Everything done using their layout. Is it trustable?

  • Magistross The problem is that I have no knowledge at this.

    What I need to do is: everyday I'll update a repository in this server with text and images. I thought about allowing the access to this entire repository because I'm making an app(NW.JS) that will be running in another domain and will get these texts and images.

    Is it simple to do? Could you make an example for me or link some documentation so I could try to do it? ^^

  • oosyrag So if I have the access can I Just do:

    <?php

    header('Access-Control-Allow-Origin: *');

    'Whatever text I want goes here'

    And so using the php file as a normal text file. Would work?

  • Hi guys. I was reading the manual about AJAX and I didn't get how exactly I should allow cross-domain access so I can load text and image files from my server.

    This "Access-Control-Allow-Origin: *" is used on the server?

    [quote:wpc36sms]

    Making AJAX requests cross-domain or in preview

    By default, browsers block AJAX requests across domains. This means, for example, a game on scirra.com can request other pages on scirra.com, but cannot request pages on facebook.com. This is an important security feature of web browsers (it is not specific to Construct 2 or its AJAX object).

    Also, when previewing in Construct 2 the game runs on localhost. This counts as a different domain to the rest of the internet, so typically AJAX requests to any web page will fail during preview, unless the server explicitly allows cross-domain requests.

    If you want AJAX requests to your server to work from any domain, or in preview, you can configure it to send the following HTTP header:

    Access-Control-Allow-Origin: *

    This will enable AJAX requests from any domain, but you should still be aware of the possible security implications of this. For more information on cross-domain requests see HTTP access control on MDN.

    Could someone help me?

    Thanks.

  • It's working now.

    Thank you, korbaach

  • Anyone?

    Can AJAX load a video file from a folder while this file is not at the project?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's not working because you are mentioning the same object twice. Construct won't know which instance to pick. A workaround is to create two families with the same object and then, on creation, put their UIDs in a family's instance variable(let's say ObjUID). Now you just need to verify if family1 is overlapping family2 and check if family1.ObjUID is different from family2.ObjUID. If its different then you know that you are dealing with two different instances of the same object.

    > Where do you see Construct 3 in terms of mobile and console performance, say, at the end of 2017?

    >

    I think it's already very good. Only problem is having to use Crosswalk for Android 4.x, but that is fading away over time (and Crosswalk is already deprecated). Throughout 2017 it will only get better. Being able to forget about Crosswalk and only target Android 5.0+ will be nice.

    Ashley, will publishing to xbox one be a real thing still this year? Steam plugin still works or do we need to use third-party plugins? The only down side of construct is the lack of publishing support, with this problem solved construct would explode with awesome showcases. The support for mobile is already solved I guess with the new features, but what about PC and consoles?

  • The request is being triggered but the video doesn't play. Am I missing something? I'm not familiar with ajax and video plugin so I probably am.

  • I'm making a program that plays some videos and show some overlay infos. Right now I'm trying to load this video files from the same folder where my app is. Also I can't just import these files to the project because these videos will change frequently so I don't need to rebuild the app over and over.

    So basically I need to load whatever videos I have in this folder and play them.

    Thanks.

RafaelMatos's avatar

RafaelMatos

Member since 8 Mar, 2014

Twitter
RafaelMatos has 1 followers

Connect with RafaelMatos

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies