Author Topic: Stages and Collision  (Read 17929 times)

0 Members and 1 Guest are viewing this topic.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Stages and Collision
« Reply #15 on: November 16, 2011, 10:51:19 pm »
Ok, now how would I display the appv"TheEnd" ?
it's in the source: just look for: If getKey(9)
(I think it's at the end :))

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #16 on: November 17, 2011, 12:37:36 am »
Ok I put it in but its not displaying, how would I implement this with my code?

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Stages and Collision
« Reply #17 on: November 17, 2011, 09:15:45 am »
Ok I put it in but its not displaying, how would I implement this with my code?
hmmmm, did you do it exactly like the source? maybe need dispgraph? did you save it before displaying it?

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #18 on: November 17, 2011, 05:38:30 pm »
The first part of the code you showed me I put before the repeast getkey, I do not want it to display when I press I key, I want it always to be on the screen. So I placed the second part of the code you showed me right after Clrdraw under Dispgraph.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Stages and Collision
« Reply #19 on: November 17, 2011, 06:05:42 pm »
??? I have no Idea what you just said. is there still a problem?

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #20 on: November 17, 2011, 06:21:48 pm »
Just in displaying the appv"TheEnd" it wont appear!

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Stages and Collision
« Reply #21 on: November 17, 2011, 06:23:30 pm »
what is the bit of code that should be doing that but isn't?

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #22 on: November 17, 2011, 06:26:57 pm »
can you do a simple drawing program in axe?
if so, do that and
then do:
Code: [Select]
:If getKey(whatever) //see if press certain key
:GetCalc("appvSTAGE",768)->A //appvar for stage created and stored into pointer A
:Copy(L6,A,768) //copies buffer (L6) into appvar
:Archive "appvSTAGE" //archives it so you don't lose it in RAM clear
:End
and then to recall it:
Code: [Select]
:GetCalc("appvSTAGE",Y0) //gets it
:Copy(Y0,L6,768) //copies into buffer
is that what you mean?

I did all this but its not working...

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Stages and Collision
« Reply #23 on: November 17, 2011, 06:30:20 pm »
no,  I meant from the actual source that you are using XD

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #24 on: November 17, 2011, 06:40:40 pm »
Here it is...

Ok It displays,, but not the Pic i need, its all a jumbled up mess!!
« Last Edit: November 17, 2011, 07:29:06 pm by hellninjas »

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Stages and Collision
« Reply #25 on: November 17, 2011, 08:06:47 pm »
Here's the source, it works, but ONLY if you have an appvar "TheEnd" saved in archive. :)
EDIT: I also optimized it a bit  ;)
« Last Edit: November 17, 2011, 08:45:03 pm by parser padwan »

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #26 on: November 17, 2011, 08:21:08 pm »
OMFG IT WORKS!!! Thanks Parser, and btw, nice job on swords! (I'm stuck on level 3 xD)

Collision I got covered, i took some notes...
But now I need some help with bullets... I want to be able to shoot in any of the normal 8 way directions, which i can handle, but because of arrays and stuff, i need to know a way to make bullets shoot from my characters spot...
Could you help me with bullets?

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Stages and Collision
« Reply #27 on: November 17, 2011, 08:24:18 pm »
yeah, sure.
so, you can do the direction of the bullets, you are just having trouble starting them at your characters position?

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #28 on: November 17, 2011, 08:28:44 pm »
I can't do bullets in general xD
I'm just saying that I am smart enough to learn it but can't figure out how.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Stages and Collision
« Reply #29 on: November 17, 2011, 08:29:38 pm »
oh XD