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 - tehalynn
Pages: [1]
1
« on: December 01, 2010, 05:42:50 pm »
Has anyone asked for automatic backup of program dependencies?
If I import prgmB into prgmA, then compiling prgmA would backup both prgmA and prgmB.
2
« on: December 01, 2010, 12:17:14 am »
I think X and Y are reversed when you try to use Pt-On with an arbitrary buffer.
[FFFFFFFFFFFFFFFF]->Pic1 .Pic2 is the buffer Zeros(768)->Pic2
.Draw the sprite to Pic2 Pt-On(50,10,Pic1)->Pic2
.Copy Pic2 to the buffer ClrDraw Copy(Pic2, L6,768) DispGraph
What I think should happen is it draws the sprite 50 pixels right and 10 pixels down. What actually happens is it draws the sprite 10 pixels right and 50 pixels down. Is this a bug, or am not doing this the right way?
I'm using Axe 0.4.6.
3
« on: November 30, 2010, 01:41:25 pm »
Thanks everyone, that was very helpful.
I think I should be able to get the sprites in contiguous memory. I like this method, because it makes it easy to see where sprites begin and end in the code.
[FFFF000000000000]→Pic1 [FFFFFFFFFFFFFFFF]
It's good to also know the method for non-continiguous sprites too.
4
« on: November 30, 2010, 02:07:39 am »
Double posting isn't well looked upon on these forums. You should edit your post.
My apologies. Will do in the future. What I tried was: [FFFF000000000000]->Pic1 [FFFFFFFFFFFFFFFF]->Pic2 Data(Pic1,Pic2)->GDB1 Pt-On(0, 0, {GDB1}) Pt-On(10, 0, {GDB1+1})
But {GDB1} and {GDB1+1} didn't seem to be pointers to Pic1 and Pic2.
5
« on: November 30, 2010, 02:05:07 am »
I guess I could store put all the sprites into one block of memory, then do Pic1+8, Pic1+16, etc.
I'm still would like to hear what other people have to say though.
6
« on: November 30, 2010, 02:00:50 am »
What's a good method for making a list of sprites in Axe?
I tried Data(Pic1, Pic2), but it wasn't working the way I thought it would.
7
« on: November 30, 2010, 01:26:29 am »
By the way, isn't Data(4,TAns,0,0) simply "Ans" in quotes? That should work, if it doesn't then its a bug I need to fix.
So what's the full code for the method that should also work?
8
« on: November 29, 2010, 12:50:21 am »
I have a couple suggestions I think would save a little time when compiling.
1. On the compile screen, sort programs by most recently compiled. The most recently compiled program is at the top. 2. Have a way to automatically run programs after they're compiled. This could be an option, or just a different key to press (instead of enter). I guess this would only work if you're compiling for no shell though.
If both of these suggestions are made, then it should only take 2 keystrokes within Axe to compile and run whichever program you compiled last.
An alternate (or additional) idea is to have a button that compiles and runs the most recently compiled program from the main screen. That would only take 1 keystroke within Axe.
9
« on: November 28, 2010, 11:46:47 pm »
Well, for one thing that code is a little different from mine (missing a ,4). But on the other hand, I just tried it now, and there is a bit of a glitch with Axe. This code only works if Ans was previously a string. The reason is that when Axe looks for an existing Ans variable to delete, it's looking for a string (and type matters because it's using chkfindsym). If it searched using findsym, it would work (but would fail for programs and appvars).
A simple fix that should always successfully create Ans as a string:
Data(4,ᵀAns,0,0)→Str0AN DelVar Str0AN Copy("TEST",GetCalc(Str0AN,4),4)
Well that seemed to work! Thank you! And thank you everyone else who offered help.
10
« on: November 28, 2010, 10:03:53 pm »
No, you have to copy data. So more like this:
Copy("TEST",GetCalc(Data,4,[sup]T[/sup],0,0),4 Code tags (and typos) murdered this. Here's what it should look like: Copy("TEST",GetCalc(Data(4,TAns,0,0),4),4)
It's a bit cluttered, though.
I tried that and it didn't seem to change Ans. If I instead do Copy("TEST",GetCalc(Data(4,TAns,0,0)),4) it changes Ans to a decimal number, but not a string. I wish I understood this better.
11
« on: November 28, 2010, 08:07:33 pm »
Wow, there are lots of helpful people here! Sorry I wasn't more clear, this was a question about Axe. I just found it recently and I'm impressed. I only really program on-calc so I'd been hoping for a while that somebody would make something like this. I'm using Ans so that the string can be recalled easily after the program ends. So let's say I want to put "TEST" into Ans. How exactly do I go about doing that? I don't entirely understand Data, TToken, and how to convert between a string and tokens.
12
« on: November 28, 2010, 06:33:56 pm »
How do you write a string to the basic variable Ans?
Pages: [1]
|