Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Positioning Tiles

Author
Message
Kanzure
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 27th Jun 2003 02:50
My current problem is that my tiles start at 32,32 (x,y)..I want them to start at 0,0.

The code currently i:

========================================================
for x=1 to 14 : for y=1 to 18
if Map(y,x) = 0 then Map(y,x) = 1
if Map(y,x) = 538976257 then Map(y,x)=2
if Map(y,x) = 538976258 then Map(y,x)=3
if Map(y,x) > 65535 then Map(y,x)=1
paste image Map(y,x),y*32,x*32

next y : next x
========================================================


Any ideas?

I know its the following line which is causing my problem:

paste image Map(y,x),y*32,x*32


Thanx for any help.
~Morph
Owner of MultiCode.NET and Multi2k.NET.
Nothing is something, and something is then nothing. Life is an illusion.
Kanzure
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 27th Jun 2003 02:59
Meh, nevermind. I fixed it after alot of thinking.


(For future n00bs, simply subtract 1 from x & y)

~Morph
Owner of MultiCode.NET and Multi2k.NET.
Nothing is something, and something is then nothing. Life is an illusion.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 27th Jun 2003 11:13
or start the for next loop on 0

hi guys
Kanzure
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 27th Jun 2003 16:15
Eek. It's scary what you don't think about when your in a rush ^^!

Thnx.

~Morph
Owner of MultiCode.NET and Multi2k.NET.
Nothing is something, and something is then nothing. Life is an illusion.

Login to post a reply

Server time is: 2024-04-24 22:12:42
Your offset time is: 2024-04-24 22:12:42