This site requires JavaScript, please enable it in your browser!
Greenfoot back
Al3x7373
Al3x7373 wrote ...

4 days ago

Trouble with background

1
2
3
Al3x7373 Al3x7373

3 days ago

#
danpost wrote...
Al3x7373 wrote...
i got for the world i got 1200 for Wide, 540 for High. and for the scroller i got no fields
There has got to be scroller fields.
So the problem is the Scroller class right ?
danpost danpost

3 days ago

#
Al3x7373 wrote...
Do you maybe know why i got no fields in the Scroller ? I can send u my code if it might help you. I got 2 Actors Megaman and Boost and I got 1 world Sky is the name of the world.
There ARE 7 fields in the Scroller class and you show you have them in an earlier code posting. Inspect the world; then, in that, find and select 'Scroller scroller' and click the 'Inspect' button.
Al3x7373 Al3x7373

3 days ago

#
danpost wrote...
Al3x7373 wrote...
Do you maybe know why i got no fields in the Scroller ? I can send u my code if it might help you. I got 2 Actors Megaman and Boost and I got 1 world Sky is the name of the world.
There ARE 7 fields in the Scroller class and you show you have them in an earlier code posting. Inspect the world; then, in that, find and select 'Scroller scroller' and click the 'Inspect' button.
I did it again and it gave me the same for the Wide=1200 ,High=540 and Cells= 1 nothing more. Maybe i am doing something wrong...
danpost danpost

3 days ago

#
Al3x7373 wrote...
I did it again and it gave me the same for the Wide=1200 ,High=540 and Cells= 1 nothing more. Maybe i am doing something wrong...
You took a detour. Do not go to Static fields and find Scroller scroller.
danpost danpost

3 days ago

#
danpost wrote...
You took a detour. Do not go to Static fields and find Scroller scroller.
Wait, I think I know what you did wrong. Right-click on the world background and select 'Inspect'.
Al3x7373 Al3x7373

2 days ago

#
danpost wrote...
danpost wrote...
You took a detour. Do not go to Static fields and find Scroller scroller.
Wait, I think I know what you did wrong. Right-click on the world background and select 'Inspect'.
Yes i actually did this and it gave me the wide high and cells.
danpost danpost

2 days ago

#
Al3x7373 wrote...
Yes i actually did this and it gave me the wide high and cells.
What else did it give you? If "nothing else", what exactly are you looking at -- like, what is the title line of the Inspect window and what exactly are the captions of the fields you do get? If you did what I said properly, the title should read: sky : Sky not Class Sky
Al3x7373 Al3x7373

2 days ago

#
danpost wrote...
Al3x7373 wrote...
Yes i actually did this and it gave me the wide high and cells.
What else did it give you? If "nothing else", what exactly are you looking at -- like, what is the title line of the Inspect window and what exactly the captions of the fields you do get? If you did what I said properly, the title should read: sky : Sky not Class Sky
Yes You are indeed right the nam of the window is Class Sky. When i right click on sky and click on inspect. How and what do i need to inspect to have the sky : Sky .
danpost danpost

2 days ago

#
danpost wrote...
Right-click on the world background and select 'Inspect'.
(the scenario window)
Al3x7373 Al3x7373

2 days ago

#
danpost wrote...
danpost wrote...
Right-click on the world background and select 'Inspect'.
(the scenario window)
Okay i found it so i proceeded as u did and 7 things appeared :for scroller : Scroller : Private World world / Private Greenfoot image Scrollimage/ private boolean limited/ private int scrolledX/private int scrolledY/pricate int Wide / private int high
danpost danpost

2 days ago

#
Al3x7373 wrote...
Okay i found it so i proceeded as u did and 7 things appeared :for scroller : Scroller : Private World world / Private Greenfoot image Scrollimage/ private boolean limited/ private int scrolledX/private int scrolledY/pricate int Wide / private int high
And what are the values for wide and high?
Al3x7373 Al3x7373

2 days ago

#
danpost wrote...
Al3x7373 wrote...
Okay i found it so i proceeded as u did and 7 things appeared :for scroller : Scroller : Private World world / Private Greenfoot image Scrollimage/ private boolean limited/ private int scrolledX/private int scrolledY/pricate int Wide / private int high
And what are the values for wide and high?
They aren't in the Scroller scroller but if u're talking about the sky it's wide=900 and high = 540
danpost danpost

2 days ago

#
Al3x7373 wrote...
They aren't in the Scroller scroller but if u're talking about the sky it's wide=900 and high = 540
You said there were 7 things for scroller (correct) and you named all correctly, including wide and high. As int fields, they must have values showing in the Inspect window. What are those values?
Al3x7373 Al3x7373

2 days ago

#
danpost wrote...
Al3x7373 wrote...
They aren't in the Scroller scroller but if u're talking about the sky it's wide=900 and high = 540
You said there were 7 things for scroller (correct) and you named all correctly, including wide and high. As int fields, they must have values showing in the Inspect window. What are those values?
That's probably the problem both the private int High / private int Wide have no fields
danpost danpost

2 days ago

#
Al3x7373 wrote...
That's probably the problem both the private int High / private int Wide have no fields
They ARE fields -- and they have values.
There are more replies on the next page.
1
2
3