lukeo25's Forum Posts

  • I want to be able to access an image in a local folder using the load image from URL. I want my user to be able to swap it out by copying a new image to the folder and just renaming to the same name as the last image eg: "Background.jpg" or "myface.png". I had suposed it could be done with "images/Background.jpg " but that doesn't seem to work.

    Can anyone help?

  • I notice that every time I update to the latest release (this and that) object has disappeared. It can be quite frustrating telling a customer that I can't do something because the latest version of C2 doesn't do what I had done for them in the past. A great example is the last release has no browser object. WTF ?

    Where has it gone & will it return?

  • Its fine, I just figured out how to do this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am wanting to add a picture border or frame to an instanced image after the image has loaded.

    I have tried a few things but nothing is working or making sense to me.

    example of Event sheet is here:

    https://www.moxtra.com/service/#timelin ... EB3mKEK/12

    Any help appreciated.

    Cheers

  • Thanks Korbaach,

    Now that makes perfect sense.

    Cheers

  • Thanks korbaach,

    I'll test this but I am spawning/creating a new instance of the intial sprite. I need to have a different image loading on each instance.

    I tried doing this by using the UID but it just changes the lot of them to the next image rather than giving me the sprite requested for the separate sprites.

    https://www.moxtra.com/v/CAEqBXFmOXR5ehdCVXdEQmtNOXBYMDhUTm1hNjRnYUtEMIABQpADFA

    Cheers all

  • Hi,

    I am already loading an image from an URL. I need to load a different image for each consecutive create object instance. I am wanting a steady stream of images flowing across the screen with a different image each create object occurrence.

    Cheers

  • Hi and thanks for the reply LittleStain,

    I would do it this way only I need the image files to be loaded as generic items. Say for example I just wanted the file names to remain the same always but not the images. So any image can be called 001 and all I need do is load new images into my file folder without having to open the project up in C2. Though I will look into something similar to your example.

    Thanks for your help.

  • Hi,

    I am trying to create new sprite objects just off to the side of the layout. They travel across the layout to exit on the other side. But as I want a stream of sprite objects, once each new object gets to a point inside the layout a new one is created off screen which then travels across to trigger the creation of another and so on. As I need each object to inherit a different image file's size and colours, I need to access the new objects unique id and give it a new image. The problem is I don't know how to do that.

    Can I get some help please?

    Here's the code so far

    https://www.moxtra.com/v/CAEqBW15NmluehdCVXdEQmtNOXBYMDhUTm1hNjRnYUtEMIABEZADFA

  • Hi all,

    So....I want to be able to show the number and name of items in a folder/directory hosted on my server to any person using the interface.

    Basically this would work like a library inventory . The user would put in their name hit a button and the next layout would show the contents of a folder that has their name as its handle. ( John's Folder ) has x.pdf y.pdf and abc.pdf. So if another pdf say mmm.pdf is added it would show mmm.pdf as well.

    Any help with plugins, JavaScript or any tutorials would be most apreciated.

    Luke

  • So is the position determined by a rule set at edit ie; the first object etc?

  • So it's just given a random number and so on....bugger, I was hoping it was a bit more relatable to the editor name.

  • So is that the same as the function that holds the array of variables. If so, doesn't that change on every runtime. Is it a requirement to do a "for loop" to find an var[] position of an instance variable.

  • Ashley hi,

    I am asking a C2 question here. Something I can't find on StackOverflow. I need to know how I communicate directly with a C2 Instanced variable using the Browser plugin. The textmmm.V1 is the variable I want to pass data to. Any help would be appreciated.

    Regards

    Luke

  • Hi,

    I've posted this elsewhere as I wasn't sure where and who to ask. So sorry if you have read this already.

    I am using the Browser plugin to send and get data from an Adobe Captivate slide. The code I am using to set the data from the Captivate FO1 variable is correct as I have used it before. The get should be working also its the C2 instance variable object property I am unsure about. I'd appreciate some help with this.

    Here is the example code. The set is working but the get isn't showing up.

    "window.parent.cpAPIInterface.setVariableValue('FO1',1);";;;;;;;;;;;;;This works fine

    "this.runtime.textmmm.V1 = window.parent.cpAPIInterface.getVariableValue('FO2');";;;;;;;;;;;;;This isn't working at all.