23beb4 No.27320
I was told to come here, maby you can help.
Im working on an isometric game in Gamemaker.
my problem is im stuck on depth.
my character will go under the tree the closer i am to the screen and above the tree when im farther at the top of the screen.
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27326
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27327
>>27326
im already using this.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27328
>>27327
apply the depth thing to all the trees and objects too (though if they are static, just do it in create instead of constantly updating them for no reason)
if you've already done this, either fix your sprite origins and make them consistent (for example place them at the feet point of the sprites) or compensate for that misplacement through adding a constant value to the -y depth
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27331
>>27328
I added this script to all objects i want depth.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27339
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27341
try game dev thread in /v/, it's more active
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27344
>>27341
that was the first thread I made, they just went on about how they wish they could make games. and how they started making it then quit.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27348
Are you using two sprites for the trees, one for the stump and then one for the top?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27350
>>27348
At first i made it 1 sprite, but i decided to use 2 sprites later thinking i could fix it but i juts end up going under the tree. but the stump is fine.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27351
>>27350
So, to clarify: the sprite interaction always works correctly with the stump, but messed up with the top part?
Are you 100% positive that you're doing the depth script for both parts of the tree?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27352
>>27351
since its the tree that i needed to be behind, i figured i would split it in two, and have depth work with the tree but i still walk under the tree.
I could make it into a single tree again but i'll get the same problem, i'll walk under the stump and tree.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27353
In this picture, i changed the tree into 1 sprite.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27354
>>27353
btw thats not the sprite im going to use for player, im just stealing one temporary
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27358
after spending $1.99 on this.
https://marketplace.yoyogames.com/assets/2422/top-down-depth-engine
all i had to do was change this code
{
depth=y*-2;
}
to
{
depth= -y
}
REEEEEEEEEEEEEEEEEEEEEEE!!!!!!!!!!!!!!!!
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27387
ok, so im trying to get this A* engine working, but when i try to run the code I get this.
anyone know what the hell this is.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27392
>>27387
I'm not familiar with GameMaker script, but that seems pretty cut and dry.
>Variable obj_Astar.<unknown variable>(...) not set before reading it.
Either obj_Astar wasn't assigned a value before you attempted to access its fieldwidth variable, or its fieldwidth variable was never assigned when you're trying to subtract 1 from it. Not sure which, but either of those are almost definitely the issue.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27402
I don't have anything to add but you should know that the camera angle you're using is called Orthogonal, not Isometric. Iso is pic related.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
23beb4 No.27403
>>27392
I got it working.
>>27402
thanks
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.