Author Topic: Stages and Collision  (Read 17594 times)

0 Members and 2 Guests are viewing this topic.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Stages and Collision
« on: November 16, 2011, 06:32:16 pm »
I am making an attempt to continue my game Cross the defender... HOWEVER, I don't know how I would make stages that my character, the cross, can go through, really all I need is one stage, but I don't know where to stage.
I also need to work with collision, like if something hits my character, he will bounce away, and the ability to stand and move around on platforms... I just need to make some examples for myself to study so I can get the basic concept of which I am trying to do!
-> = STO key
=/ = not equal to

Thanks!
Code: [Select]
.CROSSTD
[18187E7E18181818]->GDB0
44->X
30->Y
Repeat getkey(15)
Dispgraph
ClrDraw
Pt-On(X,Y,GDB0)
If getkey(4) and (Y=/0)
Y-1->Y
End
If getkey(1) and (Y=/56)
Y+1->Y
End
If Getkey(2) and (X=/0)
X-1->X
End
If getkey(3) and (X=/88)
End
End
« Last Edit: November 16, 2011, 06:45:40 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 #1 on: November 16, 2011, 06:34:47 pm »
for stage do you mean you use a drawing program and save stage aka: level as an appvar? and then recall it in the program?

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #2 on: November 16, 2011, 06:36:35 pm »
I do not know how I would do that...

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 #3 on: November 16, 2011, 06:40:46 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?

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Stages and Collision
« Reply #4 on: November 16, 2011, 06:44:01 pm »
I am making an attempt to continue my game Cross the defender... HOWEVER, I don't know how I would make stages that my character, the cross, can go through, really all I need is one stage, but I don't know where to stage.
What do you mean by stage?  Do you mean levels?
Vy'o'us pleorsdti thl'e gjaemue

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #5 on: November 16, 2011, 06:52:00 pm »
Parser, thats what I needed to know, but... Drawing program? How would I aquire such an impossible tool? xD

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 #6 on: November 16, 2011, 07:27:18 pm »
impossible? is that a joke or a real question?

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #7 on: November 16, 2011, 07:28:29 pm »
impossible? is that a joke or a real question?
joke xD

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 #8 on: November 16, 2011, 07:32:41 pm »
impossible? is that a joke or a real question?
joke xD
lol
do you still need help with collisions?

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #9 on: November 16, 2011, 07:34:01 pm »
Yes, also with doing the drawing program, do I make this or is it in code? (Hopefully made)

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 #10 on: November 16, 2011, 07:36:24 pm »
Yes, also with doing the drawing program, do I make this or is it in code? (Hopefully made)
well, it has been made hundreds of times, however nobody has (as far as I know) made a program to do that, everyone codes it to fit their specific need for their games.
but someone smarter than me: has one been made?

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #11 on: November 16, 2011, 07:37:58 pm »
I have no idea how I would make one, but could someone please help? //As seen above//

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 #12 on: November 16, 2011, 07:39:36 pm »
ok, I'll make one and post it... :)
(please wait...)

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 #13 on: November 16, 2011, 08:23:18 pm »
Ok here's the source :D
controls:
2nd-turn pixel on
mode-turn pixel off
Y=-clear screen
Store-store pic as appvar
Enter-draws stored appvar on screen
Graph-Displays your current X,Y coordinates (I don't think you'll be needing this but I threw it in anyway :))

NOTE: greyscale isn't very good, but it still functions :)
« Last Edit: November 16, 2011, 08:24:16 pm by parser padwan »

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Stages and Collision
« Reply #14 on: November 16, 2011, 08:24:56 pm »
Thanks!! Now for collision...
Ok, now how would I display the appv"TheEnd" ?
So as if my character can run around on the stage, i can do, but not the displaying...
« Last Edit: November 16, 2011, 09:00:08 pm by hellninjas »