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

2012/2/12

Point-And-Click-Scenario

1
2
MyHeartRocksNRolls MyHeartRocksNRolls

2012/2/12

#
Hello, Is there any scenario for point and click adventures? So I have just have to add background and other pictures without creating new commends? I hope you know what i try to say and to ask for. Thank you!
Duta Duta

2012/2/12

#
I'm not sure what you're looking for... could you maybe provide an example? If you're looking to make games in Greenfoot without coding then that's defeating the point of using Greenfoot. If you have trouble coding, there are tutorials around, and we oddballs who frequent the discussion boards are more than happy to help you if you get stuck!
danpost danpost

2012/2/12

#
Even a point and click takes writing code. Each object that has a 'point and click' property will need code to execute when clicked on.
programmer22 programmer22

2012/2/12

#
lol it sounds like you want to take some ones idea change some pics and call it your own ? lol
MyHeartRocksNRolls MyHeartRocksNRolls

2012/2/12

#
It was meant like that: The main commends are given like "click", this would mean that if i click the correct object it disappears. I know that even if such commends are defined, i would have to write still actions, but it would be much easier for me and it would save time. It's not really taking ideas of somebody else. I would tell my own stories and use my own pictures, but the part of creating new commends. I could also just ask por example how i should write a commend that would affect this: if the cursor is on an object there appears information about the pointed object. I could do it like this too and if i have luck you would help me. Maybe i am a bit too lazy for creating these commends, but i think i just wanna concentrate myself upon the story and pictures, because programming is not really my hobby, but telling story is. I hope, now nearly everything is clear. Thanks for the first replies :)
danpost danpost

2012/2/12

#
Greenfoot has commands, such as mouseClicked(Object object) and mouseMoved(Object object) that will serve you purposes.
programmer22 programmer22

2012/2/12

#
umm well im not sure that is a profression in programming but perhaps you could get someone to program the whole thing for you and you come up with the story behind it but i doubt it >.> so gl
Duta Duta

2012/2/12

#
@programmer22 You can get a job just coming up with the stories behind games
programmer22 programmer22

2012/2/12

#
wow thats kind of easy make up something like mario and make it almost guessable lol like just as he was about to save the princess the bad guy swooped in and took her to another castle which will appear in are next expansion
MyHeartRocksNRolls MyHeartRocksNRolls

2012/2/19

#
Thank you for the replies! But I already have a problem...it s a simple problem, but i am a beginner with Greenfoot: I want to say that if i click "this" object, it should be removed from the map, but Greenfoot sais :" ')' expected": if (Greenfoot.mouseClicked(this)) { removeObject(Actor this); } Thanks, and i am sorry for my stupid questions.
davmac davmac

2012/2/19

#
This: removeObject(Actor this); Should just be: removeObject(this); You don't need to specify the type of the parameter when you call a method, only when you define a new method.
danpost danpost

2012/2/19

#
The line 'removeObject(Actor this);' has two problems. (1) removeObject(object) is a World method, so it should be 'getWorld().removeObject(object);' (2) 'this' is already a sub-class of Actor; therefore 'getWorld().removeObject(this);' should work.
davmac davmac

2012/2/19

#
removeObject(object) is a World method, so it should be 'getWorld().removeObject(object);'
Good catch - I missed that.
MyHeartRocksNRolls MyHeartRocksNRolls

2012/2/28

#
Thank you! Next question...how do i write the following method? If i click a button on the screen, the background (the world?) should change, so it looks like my point-and-click-adventure character "moved". if (Greenfoot.mouseClicked(button)) { ... }
danpost danpost

2012/2/29

#
Download and check out this side scrolling demo scenario.
There are more replies on the next page.
1
2