Thanks, I also have a few more worlds...
P.S. What is the name of the Dragonball World, Full metal alchemist, Mario Bros., Samus and Star Fox?
P.S. The First pic is of Mobius, Sonic's world, and the second, Hyrule, Zelda.
Printable View
Thanks, I also have a few more worlds...
P.S. What is the name of the Dragonball World, Full metal alchemist, Mario Bros., Samus and Star Fox?
P.S. The First pic is of Mobius, Sonic's world, and the second, Hyrule, Zelda.
wow you are well tooled up with these and I am glad too. I am proud to be working with you and Gunn when I see this type of stuff :D
Sadly I am unaware of the world names for the games and cartoons etc you asked for Sir however i have wondered, did Super Mario World even have a name for the worlds? there were places like the desert zone, water zone etc.
Upload the latest snapshot of the code, I take a look at it.Quote:
Originally Posted by gunntims0103
this is the code i useQuote:
Originally Posted by yaustar
if pad:square() then
state = attack_r[W_FRAME]
W_TIMER = W_TIMER - 1
if W_TIMER == 0 then
W_FRAME = W_FRAME + 1
W_TIMER = 6
end
if W_FRAME == 4 then
W_FRAME = 1
end
and the code for loading the attack images is
--attacks
attack_r = {}
attack_r[1] = image.load("sora_ar/attack-1.png")
attack_r[2] = image.load("sora_ar/attack-2.png")
state = attack_r [W_FRAME]
but its not working i must be doing sum thing wrong
i appresiate the help
In you control part of your code, the frames are going from 1-3, you only have 2 frames loaded as graphics. Frames 1 and 2 are okay but when it trys this operation:
state = attack_r[W_FRAME]
when W_FRAME is 3, then it crashes because that memory/variable/whatever doesn't exist.
Change:
if W_FRAME == 4 then
W_FRAME = 1
to
if W_FRAME == 3 then
W_FRAME = 1
yaustar here the 0.2 test version of the game there lies the entire code please feel free to mess with it as much as you can as i am still a noob at coding
i have fixed the annoying black block around sora
i changed the backround
trying to implment attacks
i have the floder with soras attacks
try to fix the code for me my brain hurts
I edited my previous reply. See if that works.
Well I fixed as much as I could without changing all the code but there is a BIG problem with the way you are handling your frame animation.
Each animation at present has a different number of frames, for example attack has 2 and movement has 3 but you are using the same frame counter (W_FRAME) to access the table/array of images.
Imagine
You move right, you are now using Run_r[W_FRAME] where W_FRAME is 3 as your state. You hit attack, now it tries to assign attack_r[3] to state which doesn't work because attack_r[3] doesn't exist to blit.
Another problem is the way you are naming your variables. Some start in lower case whilst others in upper case eg:
Run_r and attack_r
Keep to one style.
Sigh... I lost the cord to connect my PSP to the computer and download this game...
Yay for loss...
thanx so much i will definitly take your feed back into accont and i will try to fix the script in the way i set up my variables etc....Quote:
Originally Posted by yaustar