crowtongue's Recent Forum Activity

  • That's actually exactly what I'm going for (unless I've misunderstood you.)

    At this point it's one of those things where I'm convinced it has to be the best way of doing this too, so I don't want to switch unless absolutely necessary.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Still can't find it. Says there are no downloads for the game.

  • Back again. Seems like I only ever make it a step or two before I have to come back...

    I tried searching and couldn't find anything like this.

    In short, r0johound showed me a way to reuse tiles in my tile editor so everytime you move it recycles the ones from the bottom and puts them up top etc...

    This solved the issue of larger maps slowing down due to all of the images.

    A little further along I decided to come up with a way to import your own tiles... I used the method outlined here:

    Method#3

    Use a different instance of a tiledBG object for each tile. Adding another tile at runtime is as simple as creating another instance and loading the texture.   Keeping the actual tiles as sprites you can select the texture by giving it the texture of one of the tiledBG instances using this plugin scirra.com/forum/plugin-texture-setter_topic43143.html.

    Here is an example:

    http://dl.dropbox.com/u/5426011/examples15/tiles_TextureSetter.zip

    Works great in theory. That example makes it look so easy! But it doesn't work with the tile-recycling method somehow. I'm using the exact same objects, just instead of changing animation frame to change the image I'm putting one overtop with texture setter. But everytime you move away and come back it clears the tiles.

    Here's a link to my .cap

    Please take a look and help me out here!

    https://dl.dropbox.com/u/69407974/texture%20saving%203.cap

  • Thank you so much! Actually the issue turned out not to be the "For Each Texture" but the fact that I wasn't loading the files properly. I saw how you formatted that part, changed mine accordingly, and now it works!

  • This is a great idea! I don't see a whole lot of 2d side scrolling roguelikes so this seems pretty unique.

    Unfortunately the link posted doesn't work. I dug up my own on the site and it says the game is awaiting authorisation. Here was the link I found anyways:

    indiedb.com/games/ivan-please leave

  • I thought it was DisplayWidth and DisplayHeight

  • Just once during loading. I think I actually tried changing it so another condition was when a variable was set it would start, but it still crashed after that.

  • Ok so I've gone through and stripped all of the events out. I haven't removed all of the objects that I don't need, but it should be close enough.

    As it is it won't even start up, it crashes immediately.

    If for whatever reason it does start, to add a folder click the folder with the plus on it and it should open up the browse directory common dialog. (I've included the graphic for that button incase it doesnt show up)

    dl.dropbox.com/u/69407974/folder%20plus.png

    dl.dropbox.com/u/69407974/texture%20loading%20example.cap

  • Loving the new setting! It's awesome you got the physics working now too. Looking forward to playing this.

  • DarkShroom: Yes that will only load one picture for each frame, also I'm using different tiledbackground objects.

    Jayjay: Your project is interesting for a lot of reasons, and I'm going to spend a lot of time pouring over it and learning from it.

    Unfortunately, since you know all of the files you are using you aren't changing textures in the way that I am. I am creating a bunch of objects based on how many files are in a folder that the user chooses, then each object is given the texture of each different file.

    Since I have stored the path in a global variable, and each filename in an array, and ive tested that both are storing them properly I'm not sure what I'm doing wrong. Maybe it's too much for construct all at once? Maybe I'm unintentionally entered something improperly?

  • I want to create an object based on each file in a directory and change its image to that file. I'm using Texture Setter in a similar fashion to this example...

    dl.dropbox.com/u/5426011/examples15/tiles_TextureSetter.zip

    My tiled background objects are called Texture. I am using a global variable called Folder to store which folder the user chooses.

    I am using an array called Tileset to store the name of each file in that directory.

    For Each Texture

    Texture: Load Texture From File global('Folder') & Tileset(loopindex)

    This crashes Construct immediately. I have tried some different variations of this with the same result. How would I properly do this?

  • Would love to give this a try, but the link isn't working...

crowtongue's avatar

crowtongue

Member since 25 Sep, 2012

None one is following crowtongue yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies