Bl4ckSh33p's Forum Posts

  • It looks like this:

    Something Happens > Create Sprite on Layer0 at x,y

    ---------------------------- Set Bullet Angle of Motion to 90

    ---------------------------- Load image from URL: URL here

    Setting instance variables or changing behaviors like the bullet seems to work fine directly after creating an object to apply the changes to this object. But the Load Image from URL action seems to apply it to all instances of the object. (Sprite)

    I will take a look at your link, thanks.

  • Hi! I used Create Object for Sprites a few times in other projects and it seemed to work fine if you add some actions right after the create action to set instance variables or options.

    But if I add "Load Image from URL" all created sprites have the same image. Do I have to add Instance Variables for the UID and add a loop for all instances (pick all) to change their image? Or is there another/easier way to do this?

  • I installed XAMPP and used localhost/bla/image.jpg and it seems to work fine. It would be nice to be able to get a list of all files in a folder with AJAX functions but I think it will work if I add a .txt file with all files in it.

    But I get a security error popup in the browser object in my app (sometimes line 2422 in c2runtime.js) but it seems to work fine.

  • Hi! First I tried node-webkit but I switched to the AJAX object because the final app/game runs in a browser not in an .exe file.

    I tried several kinds of paths for local files and searched the forums but it does not seem to work with a local path. Is there a way to convert a local file to a data uri to use it for "Load image from URL" for a sprite object somehow?

    Short description of the project so far:

    On startup a list of files is loaded (since list files from node-webkit does not work I added a .txt file like this: file1.jpg|file2.jpg|file3.jpg to use the tokenat expression with the ajax data). Then a For loop is used to create new sprites for each found file and then the sprite image should be loaded from the harddrive.

    If this is not possible with local files, does it work if I install a local Apache webserver (like XAMPP) and then use the local url?

  • Its a built in object in Autoplay Media Studio (http://www.indigorose.com/products/auto ... dia-studio) to show html files and can be used to make your own browser (but it seems some js scripts produce bugs on some websites). It uses Internet Explorer to show the html as far as I know (but not the latest version of IE).

    Do you think it could work if I install a local apache webserver and open the index.html of the C2 project in it?

  • I know, as node-webkit. But I cant open the .exe in the browser object, it has to be .html.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi! I used the bullet behavior to animate a sprite and I wanted to pause it for a short time and let it flash when it reaches a certain point. I used "on collision with object" and then set bullet speed to 0, let it flash, wait 2 sec and then set speed to 100 again. But it will reset the angle of motion to 0 to move it to the right (it was set on Startup to 90 to move from top to bottom). Is this a bug?

    When I use Bullet: Set enabled it works fine, it stops and starts with the same angle.

  • I want to include it into another app I create. Its a normal windows app and it contains a browser object. I want the C2 game to run inside the browser object in the windows application. It will be used to show some images/banners moving along the screen and its much easier to animate objects with bullet behaviour and wrap (+ effects like particles) with C2.

  • And will it work if I install a local webserver on my PC (like XAMPP)?

  • Hi! When I try to load a game from my hd I get a popup warning that some features may be blocked when using the file:// protocol. But what features are limited and not working and is it possible to remove this warning somehow to let it run from your disc if you have just a very simple game/app with a scrolling sprite for example?

  • Hi. Keep me logged in does not work in Chrome either. I checked it a few times but I am logged out the next visit/day.

  • I like it.

  • Multiplayer would be great! :)

  • Hi! I want to add the files seperately in different folders and it seems to work fine when I export the project as node-webkit and use relative paths like "data/ads/1/1.txt". the contents were loaded and displayed in a textobject but is it possible to use this in preview mode somehow? (put the folder/files in the project folder for example?)

    PS: It seems this does not work with Sprites (Load image from URL). Is it possible to use local files/paths? I tried a relative path like in the example above "data/ads/1/1.jpg".

  • Such an action would be very useful for default text as well. It seems you cant change it on runtime.