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

Report as inappropriate.

Artyoum
Artyoum presents ...

2014/8/8

TheSimplestScrollingWorld

A prototype scrolling world for a game that I am planning on making. This world is based off of RUMMAKER's scrolling world and is a good place for starters. Enjoy.

3425 views / 10 in the last 7 days

1 vote | 0 in the last 7 days

Tags: demo with-source scrolling world

open in greenfoot
Your browser does not support the canvas tag.
ArtyoumArtyoum

2014/8/11

Oh, I didn't notice that...I'll do that right away.
A new version of this scenario was uploaded on Mon Aug 11 22:21:50 UTC 2014 re publishing code.
A new version of this scenario was uploaded on Tue Aug 12 02:43:25 UTC 2014 Optimezed scrolling with the help of danpost. Now you can get around 60 frames while scrolling without having to reduce background size.
KalleLarssonKalleLarsson

2014/8/14

Nice, maybe you also want to add that the World should not scroll back, i.e when you have been scrolling to the right, and then want to go left. then the scrolling should stop until you Close in to the left edge and then scrolling begins again. Now your'e "stuck in Scrolling mode" once it's started scrolling. hope you understand what I Mean :)
A new version of this scenario was uploaded on Fri Aug 15 06:19:07 UTC 2014 Fixed Collision.
ArtyoumArtyoum

2014/8/15

@KalleLarsson I think I get what you mean, but, I don't think that is what I want this world to do...The player should not be stuck in scrolling while static, that would just make life horrible for the player...well, that is depending on the game-play....hopefully that is what you meant, otherwise, my apologies; I simply can not understand what you mean.
A new version of this scenario was uploaded on Mon Aug 25 01:17:46 UTC 2014 Added dysfunctional weapons pick up.
stephenstephen

2014/8/26

Hey, so I finally got to check out your game and it looks like you are off to a good start. I am not quite sure how your weapon pick-up system works, I don't actually have greenfoot installed on this computer, so I can't quite look at your source code. However, if I remember correctly from the way I did it in my game I used a guns class and then had several subclasses of the gun. Then the player class had a current weapon object. By default in my Paintball game the original gun was the pistol, however when a new gun was picked up I would replace the player's gun object with the new gun object. Currently it looks like yours might just be attaching it while a certain input is pressed, which I would assume is either an if statement or a while loop. Hope this helps!
A new version of this scenario was uploaded on Thu Aug 28 02:28:11 UTC 2014 Working weapon pickup and drop.
ArtyoumArtyoum

2014/8/28

@stephen Thank you for the advice, I used a couple if statements and eventually figured out how to do it correctly. Now you can pick up and drop one weapon.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

JannisMartensen