Isometric - Too ambitious?

Hey everyone, first off I’d like to welcome myself to these forums, they look very spangly.

I used to be here, before they got moved, under a different name, probably Pez, or PezDemon… I can’t remember!

Ok, here’s my problem…

I am a pixel artist, and I want to create my new website in flash, with a pixel theme to it… Basically, there will be a little pixel person in an isometric room, and when a user hovers over an object in the room, a description will appear in a pop-up (already found that tutorial on this site- thanks! :D) - but then when they click it, I want the little person to walk over to the object… and then the link to carry on… go to a new page etc.

I have absolutly no idea how to do this, I am a complete beginner, so please be clear, or link to sites that arent written in uber g33k speak.

Thanks for your time, I will be sure to stick around and get posting!

PS. I have attatched my latest piece of pixel work so you can get idea of scale etc.

PPS. These smilies are cool! :skull: :ninja: <-- ninja!!

Sen! When you are finished, just pop this in Best Of Kirupa :slight_smile:

Playamarz had already taught me isometric movement… but WOW, this is definitely in depth!

Hi,

I may be wrong, but shouldn’t the formula for finding the _x and _y of the onscreen object given the spacing and isometric x and y be:

_x=xspacing+yspacing;
_y=xspacing/2+y-spacing/2;

which then reduces to:

_x = spacing * (x + y);
_y = spacing/2 * (x - y)

Tim

Hi,

I may be wrong, but shouldn’t the formula for finding the _x and _y of the onscreen object given the spacing and isometric x and y be:

_x=xspacing+yspacing;
_y=xspacing/2+y-spacing/2;<–x times spacing, y times negative spacing, NOT x times negative spacing, y times spacing

which then reduces to:

_x = spacing * (x + y);
_y = spacing/2 * (x - y)

Tim

That is just neat, senocular.

I really haven’t seen any article that talks about isometry in that way.

Good Job. :):thumb::thumb:

BOK?

AWESOME STUFF SEN! You should write a book not just on isometry but on other flash stuff! :slight_smile: P.S. Do you have any more information on this topic! :stuck_out_tongue:

hey
good my thing would help… anyways, in my example, you’ll have to enter the IsoCoordinates to get to the block you want… if you wanna do that by clicking on the block itself, you’ll need to write a function that will convert the _xmouse and _ymouse to the iso-coordinates the block’s iso-coordinates… i tired doing that and i half-succeeded… let me know if you found a solution :slight_smile:

i tried using your way marz (which is sen’s way too), but it didnt really work, and, if i try to describe why it wouldnt then i’ll probably confuse you and myself… but it just didnt :slight_smile: :frowning: (:

that would be awesome! :)…

whoa!.. this obviously belongs in ‘best of kirupa’ :slight_smile:

ok… i think i found the way to get my path-finding thingie to calculate the path from the _xmouse and _ymouse… i’ll try it and post it soon :slight_smile:

*Originally posted by senocular *
_x = spacing * (x + y);
_y = spacing/2 * (x - y);

so now, is there a way to reverse this relation in a way so that we can enter the real coordinates and get the isometric ones…?

oops i missed that part… but… wow, this is a lot… you should write a book about isometry… really :stuck_out_tongue:

hm… isnt this what sen posted? :slight_smile:

*Originally posted by senocular *
**_y = spacing/2 * (x - y);_x = x * spacing + y * spacing;
_y = x *-spacing/2 + y * spacing/2;

which reduces to:

_x = spacing * (x + y);
_y = spacing/2 * (x - y);**

this is really nice sen :)…

yeah im just getting into multi-layered collision and stuff like that actually… this stuff is fun :slight_smile:

i had a question though… if i wanna make something like an isometric pong, how would i go about finding the angles?.. just do it as if im doing it normally and plug the numbers in the formula…? :q:

wow sen… i haven’t seen anything as comprehensive as this before, not even in books =)

:thumb::thumb::thumb:

Half succeeded eh ahmed?

I could write a basic path finding script… But it would take me a while to sit and think about how it would go again… I have the idea in my head…

And what ahmed is talking about is…

When you click the mouse… Register the _xmouse and _ymouse locations. Then you just test how close they are to the nearest set of tile coordinates… Then you just have the guy “run through” without you being able to see him… A guy will sit and think of the path he will take before he walks.

:slight_smile:

Ya man… if you couldn’t udnerstand what sen wrote… You might wanna take your adventures down a notch for now…

Just use his isometric movement and allow the user to walk the character around instead of clicking around… It’s alot easier and for what you wanna do it would probably create a better effect :slight_smile: