Author Topic: Axe tile mapping! HELP!  (Read 30620 times)

0 Members and 1 Guest are viewing this topic.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Axe tile mapping! HELP!
« Reply #105 on: December 16, 2011, 10:11:07 pm »
Yeah wouldn't the for( loop be saying for this being true then change this variable? Yeah It needs the loop
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #106 on: December 16, 2011, 10:12:31 pm »
Wat?
For( isn't an if...

But I figured out why it wouldn't work, so...
« Last Edit: December 16, 2011, 10:12:55 pm by epic7 »

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #107 on: December 16, 2011, 10:14:44 pm »
If {B*WIDTH_OF_MAP+A+W}->E
is width of map in pixels or tiles?

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Axe tile mapping! HELP!
« Reply #108 on: December 16, 2011, 10:14:46 pm »
No not an If statement, but since it is a loop it is telling it to change the variable, I thought you wanted to set a variable at the beginning like setting an X or a Y, but nevermind
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #109 on: December 16, 2011, 10:16:00 pm »

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #110 on: December 16, 2011, 10:36:01 pm »
ok, so, why isn't this working?

Code: [Select]
:.SCROLL
:[0101010101010101010101010101010101010101]->GDB1  //<--------note that it's 20 tiles long
:[...more hex stuff..........................................]
:[......(all consisting of 01's and 02's).................]
:[................................................................]
:[................................................................]
:[................................................................]
:[................................................................]
:[................................................................]
:[................................................................]
:[0101010101010101010101010101010101010101]
:GDB1->W
:[FFFFFFFFFFFFFFFF]->Pic1
:[0000000000000000]
:ClrDraw
:Repeat getKey(15)
:0-(T^8)->C
:T/8-1->F
:T/8+11->G
:S/8+11->I
:For(A,F,G
:0-(S^8)->D
:For(B,H,I
:If {B*20+A+W}->E
:Pt-On(C,D,E-1*8+Pic1
:End
:D+8->D
:End
:C+8->C
:End
:DispGraph
:End

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #111 on: December 16, 2011, 10:43:53 pm »
Maybe because use you forgot about H?

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #112 on: December 16, 2011, 10:44:22 pm »
Maybe because use you forgot about H?
? where should it be?

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #113 on: December 16, 2011, 10:45:55 pm »
:T/8-1->F
:T/8+11->G
:.Where's the -> H?
:S/8+11->I

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #114 on: December 16, 2011, 10:47:29 pm »
:T/8-1->F
:T/8+11->G
:.Where's the -> H?
:S/8+11->I
wait, what?
what would I have to add in to make it work?

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #115 on: December 16, 2011, 10:50:43 pm »
S/8-1->H
I believe.

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #116 on: December 16, 2011, 10:50:54 pm »
I think you forgot a line, S/8-1->H

*sniff* makes me so happy, seeing people use my code.

EDIT: Ninja'd. And I was wrong the first time anyways :P
« Last Edit: December 16, 2011, 10:51:34 pm by buttsfredkin »
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 parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #117 on: December 16, 2011, 10:52:16 pm »
S/8-1->H
I believe.
oooh duh I am soo dumb. :P
that is actually in my source, I just forgot to put it in there.
so... any suggestions?

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #118 on: December 16, 2011, 10:54:13 pm »
Parser, I think you just forgot to clear the screen every frame before you draw everything. You're probably getting gobbledy gook all over the screen when you try and scroll?
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 parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe tile mapping! HELP!
« Reply #119 on: December 16, 2011, 10:56:07 pm »
Parser, I think you just forgot to clear the screen every frame before you draw everything. You're probably getting gobbledy gook all over the screen when you try and scroll?
no. it doesn't give me a bunch of crap, it just doesn't display anything, then exits when I press clear.