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 - Augs

Pages: 1 ... 19 20 [21] 22
301
Lua / I need help again.
« on: September 05, 2012, 05:55:11 am »
The description  says it. Is there any code for readin 1 letter off a whole line of letters.

Example,here is the C# one.

(<string>.Substring(<where to start reading>, <How many letters after that>)

302
TI-Nspire / Re: Duck hunt nspire port!
« on: September 05, 2012, 05:48:14 am »
Tell me when its playable, because all I see is a duck flying down with incredibly low framerate, and thats on the PC, donget me started with the on calc bit

Well at least give him a chance to start in Nspire programming and be more respectful for new coders. You should maybe suggest him optimizing tricks like "Someone" did, especially considering so far you didn't contribute anything for the Nspire, unlike annoyingcalc, who is trying to.

I was just saying that he should not make a new "release" for every line of code he types. I'm all for the project. I can't be much help since I am also new to this.

I will have you know that I am currently developing a 2 player RPG.

303
TI-Nspire / Re: Duck hunt nspire port!
« on: September 04, 2012, 06:12:42 pm »
Tell me when its playable, because all I see is a duck flying down with incredibly low framerate, and thats on the PC, donget me started with the on calc bit

304
Other Calculators / Re: Trace
« on: September 04, 2012, 05:25:24 pm »
Cool

305
Lua / My first program.
« on: September 04, 2012, 04:56:02 pm »
This is my first program. I am hoping to make a 2 player RPG . If the RPG ever comes it will look something like this.

306
Lua / Re: The picture refuses to move
« on: September 04, 2012, 12:30:31 pm »
np.
So did you make it work ? :)

Yes, This is one of many problems I will have during the making of my rpg

307
Lua / Re: The picture refuses to move
« on: September 04, 2012, 11:59:56 am »
The reason is simple :
- On the computer, everytime you *do* something ( move the mouse, etc. ), the screen gets refreshed.
- On the handheld, platform.window:invalidate() has to be called. You wanted that by calling it in [lua]on.timer[/lua], but you forgot to do  [lua]timer.start[/lua](0.01)  to actually start the timer.

Instead of doing that, you could simply put the invalidate at the end of the arrow functions. (Btw, you can also use [lua]on.arrowKey[/lua](arrow) (arrow=="left" etc.)

Also, don't put platform.window:invalidate() inside of on.paint, it's useless.

Why thanks, as you know I am new to this. Since you introduced me last night.
Thanks, it worked.

308
Lua / The picture refuses to move
« on: September 04, 2012, 11:04:26 am »
The code is:

platform.apilevel = '1.0'
Person = image.new("\012\000\000\000\024\000\000\000\000\000\000\000\024\000\000\000\016\000\001\000\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128 \225\160\253 \225\160\253 \225\160\253 \225\160\253 \225\160\253\000\128\000\128\160\253 \225\160\253 \225\160\253 \225\160\253 \225\160\253 \225\000\128\000\128 \225\160\253 \225\160\253 \225\160\253 \225\160\253 \225\160\253\000\128\000\128\160\253\000\128\160\253\000\128\000\128\000\128\000\128 \225\000\128 \225\000\128\000\128\000\128\208\254\000\128\208\254\208\254\208\254\208\254\000\128\208\254\000\128\000\128\000\128\208\254\208\254\208\254\000\128\208\254\208\254\000\128\208\254\208\254\208\254\000\128\000\128\208\254\208\254\208\254\000\128\208\254\208\254\000\128\208\254\208\254\208\254\000\128\000\128\208\254\208\254\208\254\208\254\208\254\208\254\208\254\208\254\208\254\208\254\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\224\145\224\145\224\145\224\145\224\145\224\145\224\145\224\145\224\145\224\145\000\128\000\128\224\145\224\145\000\128\224\145\224\145\224\145\224\145\000\128\224\145\224\145\000\128\000\128\224\145\224\145\000\128\224\145\224\145\224\145\224\145\000\128\224\145\224\145\000\128\000\128\224\145\224\145\000\128\224\145\224\145\224\145\224\145\000\128\224\145\224\145\000\128\000\128\000\128\000\128\000\128\224\145\224\145\224\145\224\145\000\128\000\128\000\128\000\128\000\128\208\254\208\254\000\128\224\145\224\145\224\145\224\145\000\128\208\254\208\254\000\128\000\128\208\254\208\254\000\128\224\145\224\145\224\145\224\145\000\128\208\254\208\254\000\128\000\128\000\128\000\128\000\128\224\145\000\128\000\128\224\145\000\128\000\128\000\128\000\128\255\255\255\255\000\128O\128O\128\000\128\000\128O\128O\128\000\128\255\127\255\127\255\255\255\255\000\128O\128O\128\000\128\000\128O\128O\128\000\128\255\127\255\127\000\128\000\128\000\128\000\128O\128\000\128\000\128O\128\000\128\000\128\000\128\000\128\000\128\000\188\000\188\000\188\000\188\000\128\000\128\000\188\000\188\000\188\000\188\000\128\000\128\000\188\000\188\000\188\000\188\000\128\000\128\000\188\000\188\000\188\000\188\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128")

x = 1
y = 1

function on.arrowUp()
y = y-1
end

function on.arrowDown()
y = y+1
end

function on.arrowRight()
x = x+1
end

function on.arrowLeft()
x = x+1
end

function on.timer()
platform.window:invalidate()
end

function on.paint(gc)
   gc:drawImage(Person, x, y)
   platform.window:invalidate()
end

The person won't move until I click the middle of the screen. The program works fine on the PC. I am running on 3.1 and using 3.2 pc software. Any ideas on why it won't work?

309
Other Calc-Related Projects and Ideas / Re: Ti 84 emulator for the nspire
« on: September 04, 2012, 07:45:51 am »
Sorry guys, I have no experience in this kind of thing. Maybe later.

310
Lua / Re: Need help with lua
« on: September 03, 2012, 05:01:46 pm »
I meant in a Lua program, not basic ;-)

Computer software -> Insert -> Lua Editor -> Insert Script

Sorry, I am new to nspire programming.Is it this? http://i.imgur.com/O0iTv.png

311
Lua / Re: Need help with lua
« on: September 03, 2012, 04:37:18 pm »
BTW, you can still use the OS 3.1 on your device and have the Computer Software 3.2, in which you have the Lua SDK.
(and for lua scripts only, it should work well enough with OS 3.1 when you put " platform.apilevel = '1.0' " at the beginning.
Having some trouble, it says the syntax is wrong. http://i.imgur.com/KLVZQ.png

312
Lua / Re: Need help with lua
« on: September 03, 2012, 04:21:22 pm »
BTW, you can still use the OS 3.1 on your device and have the Computer Software 3.2, in which you have the Lua SDK.
(and for lua scripts only, it should work well enough with OS 3.1 when you put " platform.apilevel = '1.0' " at the beginning.

thanks

313
Other Calc-Related Projects and Ideas / Ti 84 emulator for the nspire
« on: September 03, 2012, 11:05:38 am »
Its just an idea.

314
Lua / Re: Need help with lua
« on: September 03, 2012, 08:38:18 am »
Augs, there is no need to create a new topic if someone doesn't reply qucikly .. just be patient.

Anyway, you can create Lua documents multiple ways.
The most easy is to use the SDK provided with the student software 3.2.
If you don't have that, there are two other options:
Use OClua, to program oncalc.
Use the editor of your choice, and compile the program using Luna. Then send the resulting document to your calculator.

Tutorials: http://www.inspired-lua.org/2012/01/starting-in-lua/
Luna: http://www.ticalc.org/archives/files/fileinfo/441/44113.html
OClua: http://www.ticalc.org/archives/files/fileinfo/440/44075.html

Hope this helps.


Thanks I will go with luna. The tutorial you sent me was with oclua.

315
Lua / Need help with lua
« on: September 03, 2012, 07:00:51 am »
I have some experience with programming and would like to write my own programs for the calc. I understand the basics of C# and understand basic. I have looked into it and it looks like lua is the best option. I am currently running on os 3.1(because of ndless). How can I get lua programs on my calc?

EDIT: Please post only once in the correct category. Thanks! :) -alberthrocks [Topics Merged]

Pages: 1 ... 19 20 [21] 22