Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - GreenFreak

Pages: 1 ... 12 13 [14]
196
Axe / Re: Zeros(36)->{L1}
« on: July 03, 2011, 12:36:51 pm »
Can I store 8-bit data and 16-bit data both in {L1}?
My sprite x/y coordinates are stored as 8-bit numbers (because 16-bit aren't necessary for that^^) and I what to store the score in {L1+37}, but as a 16-bit number... ( {L1+37^r} )
is that possible?
I would say yes, or isn't that possible?

197
Axe / Re: Zeros(36)->{L1}
« on: July 03, 2011, 12:27:33 pm »
wow...
thats a text  :D
Thanks a lot for the explanation! ;)

198
Axe / Re: Zeros(36)->{L1}
« on: July 03, 2011, 11:39:09 am »
Aaaahh!
Thanks for the very fast answer ;)
Code: [Select]
0->{L1}
Fill(L1,35)
works fine ;)

199
Axe / Re: Collision detection (without "pxl-test(" )
« on: July 03, 2011, 11:31:31 am »
I'm sorry, but it's too diffcult to understand for me...
But I found the solution that I have searched for in your code:
Code: [Select]
If sub(COL, {0+L1}, {1+L1}, Pic1, {2+L1}, {3+L1}, Pic1
40→D
End

Lbl COL
If abs(r1-r4)<8 and (abs(r2-r5)<8)

Thanks ;)

200
Axe / Zeros(36)->{L1}
« on: July 03, 2011, 11:11:33 am »
Hi!  :D

I've another problem: I store my data in L1
I tried to store zeros in it:
Code: [Select]
Zeros(36)->{L1}but it only stores zero in {L1+0}, but not in {L1+1}, {L1+2}, ... , {L1+36} :-\
My walkaround is:
Code: [Select]
For(X,0,36)
0->{L1+X}
End

Question: is there a better solution??

Thanks for your help!  ;)

201
Axe / Re: Collision detection (without "pxl-test(" )
« on: June 08, 2011, 01:49:10 pm »
Thanks for your answer!  ;)

How would you write this? ???
Isn't it possible with {X+L1} to do this?  :-\
Because I'll use this for many different sprites and their positions (in my DoodleJump game.. BTW: I need a name for it ;))

Thanks for your help :)

202
Axe / Re: Collision detection (without "pxl-test(" )
« on: June 07, 2011, 10:03:58 am »
No idea? :(
I need this check in all of my 3 Axe-games :(

203
Axe / Re: Collision detection (without "pxl-test(" )
« on: June 05, 2011, 03:05:32 pm »
Thanks, Deep Thought!
I've worked on it, but it won't work :(
There must be another mistake...
My currently code:
Code: [Select]
.PXLTEST
DiagnosticOff
[FFFFFFFFFFFFFFFF]->Pic1
0->X->D
44->{0+L1}
53->{1+L1}
66->{2+L1}
50->{3+L1}

Repeat getKey(15)
Pt-On({2+L1},{3+L1},Pic1
Line(0,63,95,63)
Pt-On({0+L1},{1+L1},Pic1)

DispGraphClrDraw

If getKey(2)
{0+L1}--
ElseIf getKey(3)
{0+L1}++
End

!If D
If ({2+L1})<({0+L1})
If (8+{2+L1})>({0+L1})
If (8+{3+L1})=({1+L1})
40->D
End
End
End
End

!If D
{1+L1}++
If {1+L1}=56
20->D
End
End
If D
{1+L1}--
D--
End

End


204
Axe / Collision detection (without "pxl-test(" )
« on: June 05, 2011, 11:47:34 am »
Hi!

First: I'm sorry for my bad english  :P

I tried to write a collision detection in Axe for 2 of my programs.
But I made a mistake in my code.
This is a test program for my collision detection:

Code: [Select]
.PXLTEST BYEBYE
DiagnosticOff
[FFFFFFFFFFFFFFFFüPic1
0->X+1->D
Zeros(10)->{L1}
44->{L1+0}
54->{L1+1}
.For(X,1,3)
.rand^88->{X*2+L1}
.rand^56>{X*2+1+L1}
.Pt-On({X*2+L1},{X*2+1+L1},Pic1
.End
.StorePic
Repeat getKey(15)
Pt-On({L1+2},{L1+3},Pic1
Line(0,63,95,63)
.RecallPic
Pt-On({L1+0},{L1+1},Pic1)

DispGraphClrDraw

If getKey(2)
{L1+0}--
ElseIf getKey(3)
{L1+0}++
End

If D
{L1+1}--
D--
End

!If D
If {L1+0}>{L1+2}
If {L1+0}<8+{L1+2}
If {L1+1}=8+{L1+3}
20->D
End
End
End
{L1+1}++
End

If {L1+1}=54
20->D
End

End

The problem seems to be at the
Code: [Select]
!If D
If {L1+0}>{L1+2}
If {L1+0}<8+{L1+2}
If {L1+1}=8+{L1+3}
20->D
End
End
End
{L1+1}++
End

Can you please help me to find the problem?  :(
If you don't know where my problem is, you should run this program.
I need this for all of my 3 first Axe games.

Thanks a lot  :D

Pages: 1 ... 12 13 [14]