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 - cooliojazz
Pages: 1 ... 25 26 [27] 28 29 ... 41
391
« on: March 17, 2010, 01:38:57 pm »
thats a good idea, except, what return?
DiagnosticOff 'DOWN [3C245A42A5A55A663C245A42A5A55E603C245A42A5A55A663C245A42A5A57A06→Pic1 'LEFT [1C24221A1A1A141C1C24221A361629371C24221A1A1A141C1C24221A3A122937→Pic2 'RIGHT [3824445858582838382444586C6894EC3824445858582838382444585C4894EC→Pic3 'UP [3C244242A5A55A663C244242A5A55E603C244242A5A55A663C244242A5A57A06→Pic4
1->C 0->X 0->Y While 1 C+1->C If X^5=0 C/5->A getkey->K X+(K=3)-(K=2)->X Y+(K=1)-(K=4)->Y If K=0 0->A Else K->D End sub(DP) ReturnIf K=15 End End
Lbl DS ClrDraw If D=1:Pt-Off(X,Y,A*8+Pic1:End If D=2:Pt-Off(X,Y,A*8+Pic2:End If D=3:Pt-Off(X,Y,A*8+Pic3:End If D=4:Pt-Off(X,Y,A*8+Pic4:End DispGraph Return
btw, ikemike, i swapped the numbers of the left and right directional sprite so they directly correlate to the arrow keys
392
« on: March 17, 2010, 09:31:54 am »
But, like I wanted to re-name the asmLOL program form axe, which does not show up in mirage (Yes I know you can make it, but i'm not)
393
« on: March 17, 2010, 12:28:30 am »
I put the end parethases?... Wow, that's odd... I don't even put them in equations during math class... Also the above post should be that 3 has 3/5 of a chance
394
« on: March 17, 2010, 12:16:23 am »
Oh, ok, i see. How about trying this? DiagnosticOff 'DOWN [3C245A42A5A55A663C245A42A5A55E603C245A42A5A55A663C245A42A5A57A06→Pic1 'LEFT [1C24221A1A1A141C1C24221A361629371C24221A1A1A141C1C24221A3A122937→Pic2 'RIGHT [3824445858582838382444586C6894EC3824445858582838382444585C4894EC→Pic3 'UP [3C244242A5A55A663C244242A5A55E603C244242A5A55A663C244242A5A57A06→Pic4
1->C 0->X 0->Y While 1 C+1->C If X^5=0 C/5->A getkey->K X+(K=3)-(K=2)->X Y+(K=1)-(K=4)->Y If K=0 0->A Else K->D End sub(DP) If K=15:Goto FN:End End End
Lbl DS ClrDraw If D=1:Pt-Off(X,Y,A*8+Pic1:End If D=2:Pt-Off(X,Y,A*8+Pic2:End If D=3:Pt-Off(X,Y,A*8+Pic3:End If D=4:Pt-Off(X,Y,A*8+Pic4:End DispGraph Return
Lbl FN
I think that should do what you want... if it doesn't just tell me what happened, scince i just typed this up w/o testing it  Ask if you want to know anything about that, of if really just want me to try to edit yours... EDIT: Forgot to initialize the variables! oops  EDIT2: Hopefully you didn't try that code either, you wouldn't have been able to quit...
395
« on: March 16, 2010, 11:58:56 pm »
So the first sprite is the walking down animation, the second walking right animation etc. is that correct? if so what are you using for standing still?
396
« on: March 16, 2010, 11:47:02 pm »
Umm, I might be able to help with the rest of the code if i actually knew what it did other than display sprites when you press keys. I can't really get intentions from code.
397
« on: March 16, 2010, 11:12:23 pm »
1. try to edit instead instead of double-posting if the posts are fairly close together. (like yours) 2. thats what getkey w/o the (x) part does, really.
398
« on: March 16, 2010, 11:10:24 pm »
That method could be useful for locked programs that your too lazy to go look up other ways to rename them. CoolioJazz goes off to use this new-found method...
399
« on: March 16, 2010, 11:00:30 pm »
Sorry, you're right, lol, it i the last key pressed, but I *think* it would still be a contradiction... plus, i think like in basic, once you test for straight getkey, it resets the last key to 0, so you should store the getkey to something first. somebody correct if i'm wrong. And so you're trying to change the sprite only when they release the key basically, not just when pressed?
400
« on: March 16, 2010, 10:53:46 pm »
You can do probablity like this...
RandInt(1,10) (Ans<3)+2(Ans>2 and Ans<5)+3(Ans>4)->P
This gives 1 a 1\5 chance, 2 a 1\5 chance, and 3\5 chance
401
« on: March 16, 2010, 10:46:48 pm »
Umm I don't really get most of your code, but getkey=1 and getkey(1)/=1 would be contradictory, since getkey sees what key is pressed and getkey(x) sees if key x is pressed, so you're saying, "If the current key being pressed is down, (one) and down is not being pressed, do this" You get the blue box with the code tag. [ code]Your code here[ /code]
402
« on: March 16, 2010, 09:13:56 pm »
Lol, nothing secret, just an attempt to learn axe parser  The only thing I changed that made it compile, though, was these lines: If {L1+(X*3)}=1 Pt-Off({L1+(X*3)+1},{L1+(X*3)+2},Pic1 End
and I don't have the original, cause i deleted those lines, but i'm 95% sure it was just like this instead: If {X*3+L1}=1 Pt-Off({X*3+L1+1},{X*3+L1+2},Pic1 End
403
« on: March 15, 2010, 11:03:03 pm »
@DJ Actually, the sound files weren't too hard too make, I made a few of those, its just the source which i didn't get  Also i like that ^^ idea
404
« on: March 15, 2010, 11:00:29 pm »
Ok i'm getting this weird thing happening during compilation. about 80% the way through each pass the message changes from '1st Pass' to '65534ass' and i have to press a key to make the counter advance O.o. It does seem to compile fine though after it finishes. Should i upload the source that was making it act weird?
I was getting the same thing with one of my programs that I tried to assemble, though it happened right at the start, and the first time i pressed a key to go on, the other few times it wouldn't do anything except turn off upon which, turning on the calculator, it had 0 RAM, as in NADA  also, interesting but irrelevant info, I'm using 2.53 and the little "Press F1-F4 to access quick menu" thing popped up in all large font, therefore going off the screen... Anyways, I deleted some of the lines which i had a hunch were causing it, and walla, it compiled! I then retyped most of them differently, and it worked. It was something like changing ...,{X*3+L1+1}+15,... to ...,{L1+(X*3)+1}+15,... So, I would like to know, is this a bug, or am I just being stupid and breaking some axe rule?
405
« on: March 15, 2010, 10:06:48 pm »
lol i love that program.  I tried to look at the source to figure out how it makes the sound though, but i exploded, because non-uber-basic-asm + cooliojazz = explosion
Pages: 1 ... 25 26 [27] 28 29 ... 41
|