Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - loofou

Pages: [1]
1
Releases / Re: 2D Toolkit 2.3.3
« on: January 20, 2014, 07:24:27 pm »
I have just found a very unusual error: I have three Sorting Layers, with Default in the middle. When I try to change the Sorting Layer in a tk2dSprite, I can choose top and bottom layer, but not the Default one. When I click on Default it just switches back to the layer it was on before.

2
Releases / Re: 2D Toolkit 2.0 beta 1
« on: May 27, 2013, 10:53:13 am »
Just one quick question about migrating textmeshes. I used the now gone "GetMeshDimensionsForString" method and can't find the alternative anywhere. I guess it's just renamed or in another class. Any help?

3
Support / Re: Sprite Layering
« on: December 26, 2012, 12:38:08 pm »
Hm, well, ok. I thought there were a more elegant way to solve this. A colleague implemented something like this by changing the render queue, but it was very slow with many sprites.

And yep. I didn't thought of moving the camera farther away ::)

Thank you for your help :)

4
Support / Re: Sprite Layering
« on: December 25, 2012, 09:12:37 pm »
For starters: At which z-position should the tilemap be? I don't want to move around every single object every frame. I mean the most trivial method would be to set 'z = - y' every frame. So things that go "up", go "behind". But after a few seconds going "up" or "down" your objects would move behind the map or out of the camera. This would be a problem even with 0.01-steps if the map is big enough.

I think one could just change the position of sprites that overlap, but before I implement something like that I want to know if there are any simpler methods, i haven't thought of yet.

5
Support / Sprite Layering
« on: December 23, 2012, 02:59:30 pm »
Hi there,

I have a question about best practices for sprite layering. I'm currently working on an oldschool rpg style game (eg Zelda ALttP, or Final Fantasy 6 or less) with tilemaps. Tilemap layering is not the issue, but layering overlapping sprites in the world itself.

I want my sprites to overlap sprites that are "behind" them (from game perspective), but are overlapped from the same sprites, if they are "behind" them. I don't know how to best describe my problem, so I made a few images with prototype graphics.

Player is the green link sprite. This is correct.
https://docs.google.com/open?id=0B0m9Fxe6-AAQZ0FWdU1HbktWRVU

If the player walks behind the dark link sprite. This happens now, but is not correct.
https://docs.google.com/open?id=0B0m9Fxe6-AAQV0d3bGxsaEJaQUU

And this is the correct expected behavior.
https://docs.google.com/open?id=0B0m9Fxe6-AAQeWVQM2pTbmpKNnM

My question is: What are the best practices to get this behavior? I thought of always changing the z-positition of all sprites in regard to their y-position, but i guess thats dumb.
Another thought was to change the render queue all the time, but that would mean to create a new material every time, right?

I appreciate any help of you guys. Thanks in advance :)

Loofou

6
Support / Re: TileMap Layer offset
« on: August 25, 2012, 02:28:19 pm »
They are sorted from top-left already :/ still needed the offset.

7
Support / Re: TileMap Layer offset
« on: August 24, 2012, 09:58:16 am »
I hope to have finished prototyping by then ;) But thanks for the warning.

8
Support / Re: TileMap Layer offset
« on: August 24, 2012, 09:41:43 am »
Thank you! This works perfectly :D Nonetheless I would had preferred something more dynamic, but as I need this just for prototyping, it's not worth the trouble.

So thanks again for your time :)

9
Support / Re: TileMap Layer offset
« on: August 23, 2012, 10:22:50 pm »
Problem is: I use an overlapping tileset for prototyping, so every layer needs an offset in the y axis to stack seemless to the lower tiles.

https://www.dropbox.com/s/5p2voko4lp2xzi9/LayerOffset.PNG

I have scribbled the needed offset in the picture above, so you'll get the idea of what i'm looking for.
The grass tiles are in layer 0 and the wooden blocks (and the blocks to the left) are in layer 1.

I don't know how to describe it any better, so I hope you understand what I mean :)

10
Support / TileMap Layer offset
« on: August 23, 2012, 11:14:21 am »
Hello Everyone,

I don't know if I am just blind or stupid, but I can't find the layer offset function anywhere. In the 2dtk doc's tilemap tutorial there is a picture that shows layer offsets, but that feature seems to be gone in the newest version. I try to prototype my game using overlapping block tiles, so I need to set an offset in the Y coordinate for the upper layers to stack seemless to the lower blocks. Any guess where I would find the option?

I really appreciate any help with this, so thanks in advance!

Loofou

Pages: [1]