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

2014/3/9

Boarder Lines

1
2
Rudolf Rudolf

2014/3/9

#
Hello Everyone, could anyone say how to build a boarder in my World? I want to drag an Actor from the Menu (part from the World) frame to the main World but couldn´t drag it back in the Menu. Is there any code in the Greenfoot API?
Pointifix Pointifix

2014/3/9

#
you want an actor living in two worlds am i right?
danpost danpost

2014/3/9

#
Just do not allow it to be dragged if not in the Menu area.
Rudolf Rudolf

2014/3/10

#
I need a Boarder, thats right. But how, thats my problem. This is a screenshot of my World. The World is a Picture i paint with paint:) But how to realize a boarder in this World? Should I create a new World for my menu, or it will last out to create a borderline?
Rudolf Rudolf

2014/3/10

#
Couldn´t i put some screenshot´s in?????
danpost danpost

2014/3/10

#
You cannot have 'image' accessed from your computer. You need to upload it onto a site (such as 'Photobucket.com' or a similar site) and use its URL in the 'image' link below the 'Post a reply' box.
Rudolf Rudolf

2014/3/10

#
Aahh. I hope it works...
Rudolf Rudolf

2014/3/10

#
Second try... I need a Boarder, thats right. But how, thats my problem. This is a screenshot of my World. The World is a Picture i paint with paint:) But how to realize a boarder in this World? Should I create a new World for my menu, or it will last out to create a borderline?
danpost danpost

2014/3/10

#
What is the purpose of the border? is it just a visual separator, or is there more to it? if more, then what, exactly?
Rudolf Rudolf

2014/3/10

#
I want to edit, e.g the Computer in the main Panel not in the Menu. My World is only a picture and i don´t know how to realize this option to differ between the Main Panel and my Menu in Code.
danpost danpost

2014/3/10

#
You just need to restrict your editing to the main Panel. The border is created with your code telling it when to edit and when not to. If the action to be taken goes beyond the main Panel, do not take the action. An alternative is to use an Actor object for the editing panel and any editing to its image can therefore not exceed the limits of the panel.
Rudolf Rudolf

2014/3/11

#
My World is only one picture, the Border too. http://s1055.photobucket.com/user/Rudolf81/media/screenshot19_zps28d1df93.jpg.html?filters=139554957&filters=1&sort=1&o=0 But how can I seperate my Menu from the Main panel? Can I take two pictures in one World?
Rudolf Rudolf

2014/3/11

#
Rudolf Rudolf

2014/3/11

#
Rudolf wrote...
My World is only one picture, the Border too. But how can I seperate my Menu from the Main panel? Can I take two pictures in one World?
danpost danpost

2014/3/11

#
You can use the GreenfootImage method 'drawImage' to draw one image onto another. Refer to the documentation.
There are more replies on the next page.
1
2