Mfisch Offline Status: Member
Level: Good
Points: 195
Challenges: 0 Message
Submitted on 20/10/2011 19:14
LuaFX Problem:
Hi,
Here is my problem. I am trying to get LuaFX to display a sprite with this code:
local wait = misc.wait
--Sprite - Name: arrow, Width: 24px, Height: 24px
local arrow_spr=$$$$$$$$ -- the forum will not let make a post with the characters that the real sprite has in it
spritexy 57,41,arrow_spr
wait(100)
All I get is Executing Test!!! and then the calc restarts. The sprite is not displayed.
are 2 usual functions coded by Vebveb. They are faster and need this syntax.
pushxspr x moves the sprite at x position.
drawspr y,sprite moves the sprite at y position and then draws the sprite in the invisible screen.
repeat
until
is a simple loop. The condition is key(5), so you have to press EXE to quit the loop (you can also use key(0) which return true if at least one key is pressed).
I added wait(3) to slow the loop. It's necessary to get the key.
----------------------------------
[spoiler= |J'ai rangé la calculatrice pour l'instant, A++]
[progress=73]Ultimate solution[/progress]
[progress=30]PRGM2 color[/progress]
[progress=38]Un RPG en basic qui envoie du lourd ![/progress]
[/spoiler]
Mfisch Offline Status: Member
Level: Good
Points: 195
Challenges: 0 Message
Submitted on 21/10/2011 17:34 |
Thank you very much
Now i have another problem... I can get it to display the mario sprite (i copy and pasted), but apparently my sprite wont work. I had orwell's sprite maker set to black and white, and then used this code to make a luaFX sprite. (eiyeron gave the code to me):