QUICK QUESTION~ PLEASE READ!(:

Hello! I am new to Corona and have run into the problem of my background needing to shift down… what code would i use for that?? [import]uid: 19141 topic_id: 5296 reply_id: 305296[/import]

The background is just an image object. It has x and y properties which define it’s location on the screen.

[lua]object.y = object.y + 100 – Shift it down by 100 pixels.
transition.to( object, {time=1000, y=object.y+100 ) – Transition down by 100 pixels[/lua] [import]uid: 11393 topic_id: 5296 reply_id: 17579[/import]

THankyouu!!! [import]uid: 19141 topic_id: 5296 reply_id: 17584[/import]

IT DIDNT WORK!!!
WHAT DID I DO WRONG??? [import]uid: 19141 topic_id: 5296 reply_id: 17586[/import]

Without seeing the terminal output and your code there’s no way we can know that.

But I would do what I suggested in the other thread if I were you. You need to get a grasp of the basics before you try your own stuff. Otherwise you’ll be here asking for every little thing you want to implement and progress will be VERY slow. [import]uid: 10835 topic_id: 5296 reply_id: 17589[/import]

if i give you my code so far, would u be able to help? [import]uid: 19141 topic_id: 5296 reply_id: 17590[/import]

Lua is case sensitive. Maybe you had the caps lock key on…

I don’t know whats wrong because you didn’t post any code.

If you copy and pasted the code I wrote - did you change the variable name from “object” to the variable that has your background?

[import]uid: 11393 topic_id: 5296 reply_id: 17591[/import]

here is the code i have so far… just a image… it doesnt fit the screen though… what should i do?
My code so far:

myImage = display.newImage( “background-16.jpg” ) [import]uid: 19141 topic_id: 5296 reply_id: 17593[/import]

Hello?
Are you still there?? [import]uid: 19141 topic_id: 5296 reply_id: 17596[/import]

[lua]myImage:setReferencePoint( display.TopCenterReferencePoint ) – Sets the positioning handle to the top of the image
myImage.y = 0 – Places the top of image at top of the screen[/lua]

Like Ignacio said, you should go through the sample code and examples to get a handle on the basics. [import]uid: 11393 topic_id: 5296 reply_id: 17600[/import]

I went through all the examples… i just dont get this part… [import]uid: 19141 topic_id: 5296 reply_id: 17601[/import]

Then go through the examples again. Image placement is the most basic thing you can do in Corona. [import]uid: 11393 topic_id: 5296 reply_id: 17602[/import]

The sample code that comes with Corona? I find that hard to believe, there are many (plus they cover all of this).

You can find them in Applications/Corona.243/SampleCode

Then they are broken up according to subject. There’s a wealth of knowledge there. Just take you time with it.

After you’ve done your homework we’d be able to help you with stuff that’s either not very clear or not covered in either the samples or the docs. But you have to read the docs (all of it, many times), it’s the only way to learn. [import]uid: 10835 topic_id: 5296 reply_id: 17603[/import]

ok. Thanks.

please check back often, ill let u know how im doing [import]uid: 19141 topic_id: 5296 reply_id: 17606[/import]