lukeo25's Forum Posts

  • Absolutely awesome work.

    I have an idea to incorporate the pipewerks javascript for SCORM into a plugin.

    But this is a fantastic plugin.

    Thanks

  • Thanks Blackhornet.

  • Hi all,

    My IT department wants all C2 program folders with the current permissions disallowing me to add new items this includes the plugins folder.

    Is there some way to tell C2 where a new folder path for plugins is?

    Cheers

    Luke

  • Thanks for your help guys,

    I did get this working using Set X to int(Array.At(o)).

    Cheers

  • better still I'll explain my process and may be someone will show me the right way to do it.

    I have a text file that is written like this.

    200;

    |

    120;

    |

    420;

    |

    I am using the pipe "|" and the semicolon as separators. to split it up to the array called OAData.

    So at OAData.At(1) the value will be 200 and the rest is etc'.

    I then use that data t change sizes and positions. eg: Sprite12.x is set to 200 and so on.

    How would you go about doing that? b'cause my code must break the C2 process.

  • Thanks,

    But the data is loading fine. How would this stop the objects that use the data from vanishing as they are doing at the moment.

  • Hi,

    I am trying to use array data with other object. But each time I use the data on an object like a text or sprite the object disappears. here is the array being used.

    It loads fine and the debugger says the variables are loading. But the objects that get the data disappear regardless of their type.

    https://www.dropbox.com/s/rcumpvd8w9u17 ... p.PNG?dl=0

    I'm not sure but I think this is a bug in the current version

  • Try Construct 3

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

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

    I want to open a local html file in a browser window on the click of a button.

    I have tried run JavaScript "myFunction(window.open('run.html'));"

    I want to be able to do this when exporting C2 to a nodejs file type. This is so that my user is choosing a local html5 file they want to run locally.

    It would be kind of like a html5 player utilizing the nodejs runtime like a virtual server.

  • If you are talking about the images folder that construct creates after exporting (which contains the images of the sprites etc.): you don't need to change anything in your event system. The swapped image will appear in the game (possibly it could lead to errors, if the swapped in image has the wrong format).

    If you are talking about imported files: if you created a subfolder, you load the sprite from URL with: "subfolder/image.png", if not you can just load "image.png".

    The subfolder method doesn't work for me. Does this need to be on a hosted folder or can it be localhost?

  • Thanks mindfaQ, That's not really what I had in mind. I want my user to pick one image in a folder. Then have the path to that folder update a bunch of other images.

    So if a background image is picked then a bunch of other images img001.jpg, img002.jpg etc all update from the same path.

  • mindfaQ, I take it Paster plugin is not default with C2?

  • Thanks mindfaQ I will look into all of these.

  • Thanks zenox98,

    So if I were to use FileChooser how do I use that to set the URL of an image loaded into a sprite?

  • I deleted all the plugins in the programs folder then reinstalled C2 and all is good now. It must have been an install issue.