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

Pages: 1 ... 88 89 [90] 91 92 ... 119
1336
Casio Calculators / Re: LuaFX Question
« on: October 20, 2011, 12:51:28 pm »
bump

1337
Casio Calculators / Re: LuaFX Question
« on: October 19, 2011, 04:03:46 pm »
Er, yeah, you just mistood into make sprites.
I sugger you make one sprite with SPrite maker from Orwell, then "compile them" with a utility i give you the code. You'll need to give to foo the sprite array, and it will make the string version in a file.

Code: [Select]
foo = { ... le code de ton sprite ... }
out = io.open("Prog.lua", "w") -- l'ancien sera effacé
foo2=string.char(unpack (foo)); -- on remplace foo par le nom du sprite
out:write(("sprite = %q"):format(foo2));
out:close()
io.write(string.byte("n"))

You'll need Lua on your computer

Url for the file:
http://www.planet-casio.com/files/forums/SPrite%20compiler-50456.rar

OK, i just tried that, here is my code:

Code: [Select]
local wait = misc.wait
--Sprite - Name: arrow, Width: 24px, Height: 24px
local arrow_spr="ÿø?ÿü@\000À\000À\000Ç€ÃÀÁàÀðÀxÀ<ÀÀ<ÀxÀðÁàÃÀÇ€À\000À\000À\000@\000?ÿüÿø"

spritexy 57,41,arrow_spr
wait(100)

All I get is "Executing Test!!!" and then the calc restarts. The sprite is not displayed. :(

1338
Casio Calculators / Re: LuaFX Question
« on: October 19, 2011, 02:57:21 pm »
Oh thank you Eiyeron! I was hoping you'd help me out! :)

But now I have another question... how to draw a rectangle with luaFX?

1339
Casio Calculators / Re: LuaFX Question
« on: October 19, 2011, 01:57:15 pm »
I get a string of numbers.... no error message. :(

1340
Casio Calculators / LuaFX Question
« on: October 19, 2011, 01:19:09 pm »
Why won't this code work in luaFX? I am trying to make an iPhone type slider.

Code: [Select]
arrow_spr='0x1F, 0xFF, 0xF8, 0x3F, 0xFF, 0xFC, 0x40, 0x00, 0x02, 0xC0, 0x00, 0x03, 0xC0, 0x00, 0x03, 0xC7, 0x80, 0x03, 0xC3, 0xC0, 0x03, 0xC1, 0xE0, 0x03, 0xC0, 0xF0, 0x03, 0xC0, 0x78, 0x03, 0xC0, 0x3C,  0x03, 0xC0, 0x1E, 0x03, 0xC0, 0x3C, 0x03, 0xC0, 0x78, 0x03, 0xC0, 0xF0, 0x03, 0xC1, 0xE0, 0x03, 0xC3, 0xC0, 0x03, 0xC7, 0x80, 0x03, 0xC0, 0x00, 0x03, 0xC0, 0x00, 0x03, 0xC0, 0x00, 0x03, 0x40, 0x00, 0x02, 0x3F, 0xFF, 0xFC, 0x1F, 0xFF, 0xF8'

local line = graydraw.line
local wait = misc.wait

function rectangle (x1, y1, x2, y2) -- rectangle is a function of four parameters lua
line (x1, y1, x1, y2) -- draws the rectangle
line (x1, y1, x1, y2)
line (x1, y1, x1, y2)
line (x1, y1, x1, y2)
end

function slider (x)
rectangle (6, 17, 120, 41) --Draws rectangle
spritexy x+6,30,arrow_spr
end

slider (0)
wait(100)

1341
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: October 19, 2011, 01:07:48 pm »
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
Spoiler For Spoiler:
:trollface:

2307: you like nested spoilers even more than homer XP  :devil:

1342
Casio PRIZM / Re: Stock Craze: a casio game
« on: October 19, 2011, 10:38:23 am »
you always start new pages, dont you, boot LOL. OK, omni, casiocalc.org, and planete-casio have been added so there are no more spots left. I think its time to program now. :)

1343
Casio Calculators / Re: Getting started in Casio-Basic? You can ask here.
« on: October 19, 2011, 09:51:22 am »
a mistake that newbies usually make is to say some thing like: 1 -> Mat A[1,1]

when actually, you need to do this first to prevent a mem error: [[0][0]] -> Mat A

That creates a matrix. 1-> Mat A[1,1] does not create a matrix, so if it doesn't exist, you get a mem error.

Just thought i'd add that info, since a lot of BASIC progs have that problem.

1344
Computer Projects and Ideas / Re: My browser based game building platform
« on: October 19, 2011, 09:36:32 am »
very nice ;)

Great program.

1345
Miscellaneous / Re: Bookmarklets
« on: October 18, 2011, 07:36:01 pm »
I think you have more post than me now, boot :P

1346
Introduce Yourself! / Re: Greetings Calc-lings!
« on: October 18, 2011, 06:45:09 pm »
hey, dont just eat peanuts! Have some ice cream.


1347
Casio PRIZM / Re: Stock Craze: a casio game
« on: October 18, 2011, 05:56:20 pm »
parser and spyro have been added.

Come on ppl.. only 3 spots left!

1348
Humour and Jokes / Re: Dilbert: "We could only program with 0s"
« on: October 18, 2011, 05:50:50 pm »
reminds me of something my dad used to tell us when we didnt wanna go to school

Quote
When I was your age, I had to WALK 5 miles, uphill, both ways to get to school!

The joke being that unless the earth has tides, you cant walk uphill both ways.

1349
Casio PRIZM / Re: Stock Craze: a casio game
« on: October 18, 2011, 04:45:56 pm »
You've been added... dont forget to put the userbar in your sig!

1350
Casio PRIZM / Re: Stock Craze: a casio game
« on: October 18, 2011, 04:23:41 pm »
he's just been added, do you want one for yourself?

Pages: 1 ... 88 89 [90] 91 92 ... 119