I would like to know the sameZitat:
Zitat von c5cha7
Printable View
I would like to know the sameZitat:
Zitat von c5cha7
Thanks and you were right on thats what i wanted!Zitat:
Zitat von XteticX
anyway, i have just figured out the resizer function and it works! its sweet!
Well, now all ineed is to know how to make a sidescroll type of thing, but its not really a sidescrolling thing, its more ofa one picture backround flying horizontly past the screen over and over again so can someone please help me with this?
Thats called sidescrolling :D ....
Umm, Help SG57 and I make a sidescrolling BG, because i need the same
somebody answered me awhile back buttt...
they just said something about a bgXy + 479 and stuff like that heres the post:
"I have a number, bgX, that is default 0
now think about this, i said that if its < 0, then blit the image at bgX and bgX+479
if its after 0, then make it bgX-480
if its less than -(480-480) then make it -480
if you push left or right, make bgX + or -"
can someone explain this alittle better or give me an example of a sidescrolling game?
also, like in the lua windows shell, how do you make it so if you go over a thing, in my case its a menu, it lights up a bit or if you push X on that certain thing/pixel, it does my own file, i know how to do the:
dofile("script.lua)
type thing, anyone can help? thanks alot if yu can!
Hmm.
I Would actually like to know how to make a sidescrolling background.
That would be a nice addition to my game lol.
But barrier's would still be nice :icon_bigg
Hmm..Zitat:
Zitat von SG57
I Could help you with that
Here \/
Or something like that.Code:
screen:blit(18, 18, image)
if x0 < 50 then
if x0 > 15 then
if y0 < 60 then
if y0 > 15 then
screen:blit(18, 18, highlighted)
if pad:cross() then
dofile("script.lua)
end
end
end
end
If it's not a mouse then change these \/
That's all i can do for know lol.Code:if x0 < 50 then
if x0 > 15 then
if y0 < 60 then
if y0 > 15 then
would putting numbers in the () for "if pad:start(###) then" mean if start is held for ### time then, or how eles could this be done?
I dont think pad:start() can hold any arguments. Just create a simple loop. Someting like:Zitat:
Zitat von sofa king dumb
I never tested if "while pad:start() do" would work. It should. lol :icon_biggCode:while pad:start() do
time=time+1
if time>=50 then
time=0
"execute and action here"
end
end
THANTHANKS, and ya its with a mouse and i just tried it and it said line 26: trying to compare nil value, so that means at the start of the if statements is where the error is soZitat:
Zitat von c5cha7
, now if iwanted to changed where the cursor would go over, say pixel (232, 131) but not that specific pixel, but its a rectangle area, so the area between pixels (232, 142), (249, 142) ,(232, 131) and (249, 131), then what would i do? and its with a cursor.
EDIT
o forgot one major question for my game...how do i rotate an image not 90* like in the function in the developers dungeon, but say like 10* if i press up and down 10*... thank you alot if you can help at all