roracle's Recent Forum Activity

  • I'm also going to point out that changing tiles (in my case I needed solid tiles on one Tilemap and floor tiles on another) is as simple (yet tedious) as opening the XML in Notepad++, copying the tile data string (the long line of numbers and commas), then paste them into a new file. Replace solid numbers with "-1". IE: if your wall tile is "45", in Notepad++ open "find and replace, and look for ,45, and replace with ,-1, (include the commas in case the tile numbers are super high, this way lower numbers will not change when you don't want them to).

    Do the same with floor tiles in the OTHER string.

    When done, copy the string back to the main XML file, save, and load your project file.

  • Solved, easy solution:

    1) Clone the Tilemap

    2) Save using "Save As Project"

    3) Go to the XML file where the original Tilemap is (the "Layouts" folder)

    4) Copy the entire <instance> block

    5) Find the new Tilemap <instance> and write down the name and UID

    6) Paste the block you copied in it's stead, and change the name and UID back to what it should be

    7) Enjoy

  • Is there a way to "clone" a tilemap object and keep every last piece in tact? It seems pointless to redo everything when I'm trying to just get a solid and a background going, especially with how large the map is that I'm working on.

  • It does exist, it's a pixel but it's there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there any way at all to remove collision polygons from some tiles while retaining it in others? I find it difficult to work with "obstacle" blocks, seeing as it takes forever to draw a map to begin with, much less going tile per tile covering it with the proper collision box. I'm sure it could be easily accomplished by using another tilemap object, making one with and the other without collisions, but it seem inefficient...

    Also I'm sure this has been asked before, but was hoping maybe it was solved by now, or maybe even if there's an update for tilemap object coming soon that would allow for it?

  • That's pretty much how mine's been, too. However, I don't feel inclined to share (I had it up but took it down) because I have a lot of other things I've worked on, and this isn't open source in the least. What I can do is tell you it involves separating each direction into it's own general code blocks, and it uses a lot of sub-events and carefully placed actions (things in the right order as little things like that matter).

    The picture I posted is very long winded and not correct, as it was actually easier than is depicted.

    It's not been easy, but it can be done. What I can say is throwing left and right has to do with bullet gravity, remembering where you threw it from (on Y axis) in a variable, and if it's 32 or 64 below that variable on the Y axis, destroy the object.

  • Hey I figured it out using only the "bullet" behavior. Thanks for the input, it's pretty flawless as it stands now!

  • Could you give me a capx of an example of such technique? The gravity+bullet, that is? I can imagine it but my mind is so wasted on trying to figure this out all day (yes, all day).

  • Okay, I'll narrow it down:

    This SHOULD work but it is NOT working in ANY way. I know this because the first group "ThrowRight" works perfectly fine, but doing the opposite for "ThrowLeft" doesn't work the way expected. Yes I've originally tried "Self.Y" method on ThrowLeft, did that first, but assumed I'd try something else before I took the screenshot.

  • Okay, I've refined the coding and have a few things a little more streamlined. I have two problems, but the main problem is on LinkLift page where the exact same theory but opposite for left/right is near the bottom (ThrowRight and ThrowLeft groups).

    ThrowRight works properly, but ThrowLeft does not for some unknown reason.

    Here's a CAPX with the latest changes:

    [REMOVED]

    The game starts on the lower left screen, just go up one screen via the ladder/stairs and you will see bushes you can pick up. You CANNOT YET throw up and down, just left and right, where the issue is.

  • I would say the best way would be to destroy the one you picked up, spawn another at the same time with a bullet behavior attached, have that one also with a timer behavior set to a "distance" of whatever time looks right (0.3,0.5, etc) have the angle set the same as player angle. On "distance" timer tag have destroy animation play and destroy pot.

    Yeah, I have him actually picking up the item that is placed:

    The item (in this case a bush) already has a disabled bullet behavior.

    When doing the "pick up" routine, I get the UID of the item, and focus on that, lifting the exact same UID that is on the ground. I replace the ground area with a "respawner" so when you go to the next screen it triggers to replace it.

    The problem I'm mainly having is the throwing part, I cannot seem to "throw" the item in hand. The items have a bullet behavior, and depending on which way the player faces it should throw that direction. I cannot seem to figure out the curve or if even bullet is proper for this action. The bush/pot/etc should not go in a straight line, but curve down, which I've kind of done by compensating for the Y value of it's position, but when I implement the same thing for the other direction it doesn't work properly.

    I'm thinking it might be easier to do a custom movement, but I've never worked with it before.

    I'll be honest here, it's a remake for me, personally, to enjoy. I can PM you a CAPX if you wish, but keep in mind that it's early stages (I just started it less than a week ago).

  • Okay the game is already a little long winded, and it would be hard to isolate for demonstrating the issue I'm having, but I'll try to explain it here:

    I am making a Zelda-style game, and I'm stuck pretty bad on how to throw an item. I've been able to pick up an item, but there's a problem when it comes to throwing said item. Are there any examples anywhere regarding something like this?

    In case anyone doesn't understand, I've recorded a short video of the technique I'm wanting from an actual Zelda game. I accidently go to the map first, but it's the basic "pick up a pot and throw it".

    https://youtu.be/XkB5eGrmjE4

    Thank you in advance!

roracle's avatar

roracle

Member since 30 Apr, 2009

None one is following roracle yet!

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies