Author Topic: New Tilemapping Tutorial With Example  (Read 23865 times)

0 Members and 1 Guest are viewing this topic.

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #15 on: April 18, 2011, 01:30:12 pm »
This deserves 255 thumbs up. Anyone with AXE should read this, it's just practically perfect. Just wish collisions were in the code- Did I miss them in there?

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #16 on: April 18, 2011, 05:57:02 pm »
Thanks! and yeah, collisions are in there.
Look at the getkey parts of the code, it won't let you step on anything that isn't 0 in the data.  You can also code in other exceptions.  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #17 on: April 18, 2011, 06:00:02 pm »
Thanks! and yeah, collisions are in there.
Look at the getkey parts of the code, it won't let you step on anything that isn't 0 in the data.  You can also code in other exceptions.  ;)

And thanks for that info. I can start coding now.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #18 on: April 18, 2011, 06:11:12 pm »
Glad I could help.  ;)

You should post about your project soon. ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #19 on: June 08, 2011, 01:58:26 pm »
Very good for those who are new to scrolling maps.
Just one question: why is the last row of your map longer than the others ? Because I would like to make scrolling maps and if this extra 0C is necessary, I have to put one too (but I'll do my own routine because I don't want exactly this result).
« Last Edit: June 08, 2011, 02:00:29 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #20 on: June 08, 2011, 03:28:08 pm »
Just one question: why is the last row of your map longer than the others ? Because I would like to make scrolling maps and if this extra 0C is necessary, I have to put one too (but I'll do my own routine because I don't want exactly this result).
I assume that it's a typo; I don't see a reason for it either.

Offline V1mes

  • LV3 Member (Next: 100)
  • ***
  • Posts: 83
  • Rating: +7/-0
  • Ma-Heki!
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #21 on: August 18, 2011, 02:38:31 pm »
how could you make a kind of map file format that could be created in a level editor and loaded as an external file?

btw great work on the example
Nom nom nom

Spoiler For Do a barrell roll:

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #22 on: August 19, 2011, 08:36:55 pm »
All you have to do is read from an appvar.  The map editor creates an appvar, stores the map inside. the program gets the location, and uses that pointer.

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #23 on: August 19, 2011, 11:29:31 pm »
Maybe it'd be helpful to include a tile-mapping program/utility with the source code and detailed documentation. Then again, they're fairly easy to write.
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #24 on: August 19, 2011, 11:33:55 pm »
there's one attached on the first post.

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #25 on: August 19, 2011, 11:51:04 pm »
Oops. My bad.
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Dahlkzer

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #26 on: December 16, 2011, 04:18:35 pm »
So i used your character sprites and ended up with some messed up looking dude...
 x.x
(i'd put a screenshot but i'm a noob and idk how to do that)

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #27 on: December 16, 2011, 04:24:32 pm »
Wabbitemu is a program I think is normally used for screenies.

(I also think code example might help more :P)

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #28 on: December 16, 2011, 04:27:20 pm »
Make sure you're using dispgraph(little r thingy) for the body.

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Dahlkzer

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: New Tilemapping Tutorial With Example
« Reply #29 on: December 17, 2011, 12:55:41 pm »
fixed it.
instead of
Code: [Select]
:Pt-Off(40,32,Pic1+8+(θ/4^2*8+8*(θ≠0))+{r1}
:Pt-Off(40,24,Pic1+{r1}
I had to use
Code: [Select]
:Pt-Off(40,32,8+(θ/4^2*8+8*(θ≠0))+Y+Pic1
:Pt-Off(40,24,Y+Pic1
and I interchanged all instances of {r1} with Y

Also, I have Wabbitemu, just don't know how to upload the screenie to here.
The code I was using was the exact same as the tutorial.
« Last Edit: December 17, 2011, 01:09:55 pm by Dahlkzer »