Help

Moderator: tr1p1ea

T0RM3N7
Sir Posts-A-Lot
Posts: 230
Joined: Wed 26 Jan, 2005 5:51 pm
Location: on cloud 9
Contact:

Post by T0RM3N7 »

that would be great (the tutorial) :D
I sorta Know how the tilemaps work but what I dont know is how to link one tilemap to another :(

Code: Select all

     ------------    -----------------
     [tilemap 1 ]    [tilemap 2      ]
     [          ]    [               ]
     [          ]    [               ]
     [          ]    [               ] 
     [          x    x               ]
     ------------    -----------------
I dont know how to link the 'x' on tilemap one to the 'x' on tilemap two.
can someone help? :worship:
girls=time*money
time=money
girls=money*money
money is the root of all evil
girls=(evil^1/2)*(evil^1/2)
girls=(evil^1/2)^2
girls=evil

Image
User avatar
crzyrbl
Calc Wizard
Posts: 518
Joined: Wed 06 Jul, 2005 4:56 pm
Location: 3rd rock....

Post by crzyrbl »

i have to do something like that for zelda, only mine has to scroll!
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

Image
User avatar
dysfunction
Calc Master
Posts: 1454
Joined: Wed 22 Dec, 2004 3:07 am
Location: Through the Aura

Post by dysfunction »

Just write some collision-detection code that says

If you reach the edge of one tilemap
Then
Draw the next tilemap
End
Image


"You're very clever, young man, but it's turtles all the way down!"
necro
Calc King
Posts: 1619
Joined: Sat 26 Mar, 2005 2:45 am
Location: your shadow

Post by necro »

and a nifty trick, you can have decimals in the matrices and Xlib ignores them...so you can make diffrent types of the same thing (multiple chest contents, breakable walls, ect) without using the same sprite multiple times
User avatar
crzyrbl
Calc Wizard
Posts: 518
Joined: Wed 06 Jul, 2005 4:56 pm
Location: 3rd rock....

Post by crzyrbl »

:excited: thnx necro, now i can make one-time moveable blox in my zelda game. got any other tips?
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

Image
Spooner
Regular Member
Posts: 144
Joined: Mon 18 Apr, 2005 11:18 pm

Post by Spooner »

Ok I figured it out sort of I understand the sprite thing but no the fomulas and how to make the sprtite change and then chang back but I sill am praticeing.
necro
Calc King
Posts: 1619
Joined: Sat 26 Mar, 2005 2:45 am
Location: your shadow

Post by necro »

other neat tricks: you can create envirometal efects by having a tile map over a tile map, you can make animated sprite sets by switching the picture in the syntax each time the screen updates (or every so many times...depends on how much/fast you want the movement) though it could get complex if you use more than 96 sprites at one time then it gets a bit more complicated though, you can make grey scale by a similar method to animated sprites, but you would have to switch screens alot faster but it will realy slow your games down, if you use the text command, a -1 preceding the x and y cordinates, you will get home screen font (though that is pretty widely known)
Post Reply