1
Axe / Re: Noob Help
« on: June 01, 2011, 08:54:25 am »
It didn't work it gave me the same answer

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.
Pages: [1]
2
Hey I'm a new for using axe parser, so i don't know alot of tricks and syntex. But I have programed a fair amount to understand basic commands. Anyway the problem I am programing a side scroller and the way I want to program someone walking is by testing getkey in a main repeat loop. And if a getkey equals a certain number like 2, then I want to change what it outputs by changed the value of the string 1. So In the beginning I set string1 to a value, (the character facing to the right), and when someone hits the left arrow key I want the person to turn to the left. So I want change the value of string1 to and image of the person facing to the left. But apparently you can't do that because every time I try to compile the program I get ERR: duplicate. So is there any trick to doing this or am I going in the complete wrong direction? Any help is greatly appreciated! Thanks
In case you couldn't understand what I was trying to say, here is the code: :.BLA<br />:<br />:ClrDraw<br />:<br />:[4E4E447C440C1222]→Str1<br />:<br />:0→A<br />:56→B<br />:Repeat getKey(15)<br />:If getKey(1) and (B≠56<br />:B+1→B:End<br />:If getKey(2) and (A≠0<br />:A-1→A:End<br />:If getKey(3) and (A≠87<br />:[3A3A121E12182422]→Str1<br />:A+1→A:End<br />:If getKey(4) and (B≠0<br />:B-2→B:End<br />:If B<56<br />:B+1→B:End<br />:ClrDraw<br />:Pt-On(A,B,Str1)<br />:DispGraph<br />:End<br />Generated by <a href="http://sc.cemetech.net">SourceCoder</a>, © 2005-2011 <a href="http://www.cemetech.net">Cemetech</a>
Pages: [1]
|
|