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

2016/4/27

i have java 8 but it says jdk not installed

Sunflower Sunflower

2016/4/27

#
shash@sash:~/Downloads$ java -version java version "1.8.0_73" Java(TM) SE Runtime Environment (build 1.8.0_73-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode) shash@sash:~/Downloads$ whereis java java: /usr/bin/java /usr/bin/X11/java /usr/local/java /usr/share/java
danpost danpost

2016/4/27

#
You are showing this:
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
which is the 'jre' (java runtime environment)-- and is not the 'jdk' (java development kit). You need to download the 'jdk' (which probably has a 'jre' included with it).
Munde Munde

2016/4/28

#
excuse me danpost, but im new on greenfoot. is it possible if you take a look at my scenario and tell me the code i need for a scroll world. ive tried taking a look at others but i dont really understand how to make it suitable to my world. if u can it would be much appreciated!
danpost danpost

2016/4/28

#
Munde wrote...
excuse me danpost, but im new on greenfoot. is it possible if you take a look at my scenario and tell me the code i need for a scroll world. ive tried taking a look at others but i dont really understand how to make it suitable to my world. if u can it would be much appreciated!
I cannot look at a scenario that is not available to look at. Also, you need to be more specific as to what type of scrolling world you are wanting (what directtions scrolling is allowed, what will cause the scrolling -- automatic or player-induced -- and what limits are imposed on the scrolling).
Munde Munde

2016/4/28

#
i would like to scroll from left to right, similar to the mario concept. So i would have platoforms to walk on throught the scroll as well to land on.I would like the scroll to be 'player' induced and all i want the length to be accustomed to about 3 or more platforms long. p.s if u have time to help me the landing on a platform thing( it is not consistent and my player somtimes falls through), it would be much appreciated!
Munde Munde

2016/4/28

#
danpost danpost

2016/4/28

#
I have a Jump and Run Demo w/Moving Platform scenario; you can look at the code to see how I do it. As far as scrolling, my Bee Quick (ImgScroll Demo) scenario scrolling class will probably work.
Munde Munde

2016/4/29

#
Ok thank you very much
Munde Munde

2016/4/29

#
how shud i change the code to make the scroll only go left and right? the scroll works properly but i dont know how to change it just to left and right
danpost danpost

2016/4/29

#
The ImgScroll class you are using should not need any modifications. If you do not want to scroll vertically, then use '0' (zero) for amount to scroll in that direction scroll(dx, 0);
You need to login to post a reply.