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

2013/2/17

getIntersectingObject

3
4
5
6
7
8
DJ_KASKO DJ_KASKO

2016/4/22

#
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class KimJongUn here. * * @author (your name) * @version (a version number or a date) */ public class KimJongUn extends Animal { /** * Act - do whatever the KimJongUn wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public KimJongUn(Counter pointsCounter) { counter = pointsCounter; GreenfootImage image = getImage(); int imgWidth = image.getWidth(); int imgHeight = image.getHeight(); image.scale(imgWidth*2/5, imgHeight*2/5); } } the counter on line 17 counter = pointsCounter; it says cannot find symbol on counter
DJ_KASKO DJ_KASKO

2016/4/22

#
you still there man
DJ_KASKO DJ_KASKO

2016/4/22

#
come on man i still have alot to do
DJ_KASKO DJ_KASKO

2016/4/22

#
ill be on later since your gone so please help me tommorow or after that i need to finish this soon thank you for helping me so far and i hope we can do it again soon bye
danpost danpost

2016/4/22

#
DJ_KASKO wrote...
the counter on line 17 counter = pointsCounter; it says cannot find symbol on counter
Remove line 17 and remove 'Counter pointsCounter from line 15 as well.
DJ_KASKO DJ_KASKO

2016/4/23

#
danpost wrote...
DJ_KASKO wrote...
the counter on line 17 counter = pointsCounter; it says cannot find symbol on counter
Remove line 17 and remove 'Counter pointsCounter from line 15 as well.
ok i did that now it only moves forward once when i press upthen when i perss it againg it goes back and still counts as an pointand it dosent touch him what do i do now
danpost danpost

2016/4/24

#
Change the order of the code for moving and the code checking for collision. In other words, check for collision first; if the actors are currently touching, move the player back, else move if the key is pressed.
DJ_KASKO DJ_KASKO

2016/4/24

#
I have just made the game a scenario on www.greenfoot.com so please check it out and fix it also make the game and then post it and go through it with me because i also got to learn. Dont make it to complicated thoughKimJongUn Punching Simulator (NOT WoRKING) for danpost only
DJ_KASKO DJ_KASKO

2016/4/24

#
so yea download that check it out and then please help me and fix itbecause i need to finish it today or tommorow thanks danpost just post a comment saying that your going to check it ojut just so ik that you are there
danpost danpost

2016/4/24

#
You did not check the 'Include source code' checkbox; so, the project cannot be downloaded. However, it appears that the images you are using have excess transparencies around them (complete rows or columns of transparent pixels that are part of the image object, yet not actually part of the image itself (colored part of the image). I can check that out after you update the scenario to include the source code. Just 'Share' it again checking the box.
DJ_KASKO DJ_KASKO

2016/4/24

#
ok
DJ_KASKO DJ_KASKO

2016/4/24

#
so how do i fix it to share properly step by step
danpost danpost

2016/4/24

#
Click the 'Share' button at the top right corner of the greenfoot frame. Check the 'Publish source code' checkbox. Click the 'Share' button to upload.
DJ_KASKO DJ_KASKO

2016/4/24

#
ok never mind i did that so check it out know
danpost danpost

2016/4/24

#
Okay. I have it downloaded. You can delete the scenario off the site if you wish. Just do the following: Make sure you are logged onto the site. Go to your scenario page. Click the 'delete scenario' link (it should be just above the scenario window and to the right above any description you may have added).
There are more replies on the next page.
3
4
5
6
7
8