0 Members and 1 Guest are viewing this topic.
I've seen some people wanting to use Text input routines, so here's the one I use in Axe Snake, SpiderAx, and Jump. Press Second when done typing, del to backspace, and Clear to quit.At the end of the routine, the string is null terminated and begins at L1. It also Displays it again because I wanted to show how to display it and waits for you to press second again. If you use this routine, you may credit me, but it is not necessary.
Maybe use Copy(?
Do you mean into an OS string? If so, you will want to combine a couple of routines here. If you just want to store it to the Axe variable, Str0, that's different. For it, do Buff(17)->Str0 at the beginning of the program and then replace L1 in my routine with Str0.
"appv"Buff(8)→Str0Copy(L₁,Str0+1,8)GetCalc(Str0,Y₀)
Is this what you want?Code: [Select]"appv"Buff(8)→Str0Copy(L₁,Str0+1,8)GetCalc(Str0,Y₀)
0→AClrDrawRepeat getKey(15If A≤95A++Pxl-On(A,0 ;Axe use (X,Y), right?EndDispGraphL6+767→C-12→DFor(756){C--} xor {D--}→{C}EndEnd
http://ourl.ca/15074A routine which draws a sprite scaled.
Quote from: Keoni29 on January 31, 2012, 07:16:13 amhttp://ourl.ca/15074A routine which draws a sprite scaled.I think this got lost in the threads of time, but meishe91, DJ_O, and Quigibo came up with some really neat scalers (for partial sizes, even) on this page: http://ourl.ca/60160