This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Discussions
You need to login to take part
Current Discussions
Need help with getRotation();
By sidetracked, with 10 replies.
Last reply by remy88, over 10 years ago:
In the method fireGun() you are adding a new Bullet object instead of the bullet you already created. Change it to: <Code Omitted>
I thought I had my actor animated, but now it isn't. I'm not sure what to do now.
By tn13673, with 4 replies.
Last reply by Super_Hippo, over 10 years ago:
Only call the animation-method when the actor moves. That will be after the 'move(±speed)'. To slow it down, use an int variable as a timer. Increase it and when it reaches a certain value, execute the animation.
getOneObjectAtOffset() misbehaving
By Art, with 14 replies.
Last reply by davmac, over 10 years ago:
It surprised me that danpost's suggestion didn't help. I looked at this myself, and found another very subtle issue in how image resizing is handled (it is really an extension of the first problem). Anyway, the following code makes the problem go away:
Help with an ammo counter
By NakedSnakeCQC, with 2 replies.
Last reply by NakedSnakeCQC, over 10 years ago:
Thank you very much, I will try this then.
Make certain condition for ice block to fall
By WhitePorpoise, with 5 replies.
Last reply by WhitePorpoise, over 10 years ago:
Thank you so much. I'll try my best to learn it :)
Find out how many objects from one class are on the world
By ExLegendHD, with 37 replies.
Last reply by danpost, over 10 years ago:
Super_Hippo wrote...
I think you can place lines 2+3 at the start of the act-method.
Yes -- those two lines should be moved to the beginning of the act method of the class. For the reason no change is being made -- you are not creating a Timer object and placing it in the world for the act method of the Timer class to actually execute.
Crashing when actor gets destroyed.
By Lavuco, with 2 replies.
Last reply by Lavuco, over 10 years ago:
It works hehe ty ^_^ Yeh the enemy is destroying itself when touching a bullet i found it more interesting to do hehe So yeh it works now and the thing i did wrong was calling it in the wrong place hehe
KinectServer on Mac OSX 10.11
By danielneumann, with no replies.
I have been trying to compile/install the KinectServer on the latest version of OSX, El Capitan. Has anyone been successful in getting this to work?
How to add music to all levels?
By Iainm1872, with 1 reply.
Replied to by danpost, over 10 years ago:
I have a
BgMusic Actor Class Demo
scenario that has a class to control background music. It is an Actor subclass, but it is not needed that an instance of the class be added into the world. You would only add one if you wanted the user to be able to toggle the music on and off.
How do I animate an actor using 3 objects? I was only taught 2 and I coped it and just changed the numbers/names of the actors, but it doesn't work.
By tn13673, with 2 replies.
Last reply by tn13673, over 10 years ago:
I got it fixed
How do I turn off auto-compile?
By 123Mike123, with 3 replies.
Last reply by 123Mike123, over 10 years ago:
Ok thanks anyway.
How do I get a score when the ball goes off the screen on one side?
By tn13673, with 7 replies.
Last reply by tn13673, over 10 years ago:
I got it fixed.
Stop the music looping through levels.
By mateo3012, with 1 reply.
Replied to by Super_Hippo, over 10 years ago:
You are not showing how you want to pause/stop the music when changing the world. You need something like this when changing the world: <Code Omitted>
Gravity and Jumping?
By deadbird11, with 2 replies.
Last reply by deadbird11, over 10 years ago:
Thanks so much!!
Going to the next level by a door
By bilibull, with 4 replies.
Last reply by bilibull, over 10 years ago:
Thank you very much both of you once again for helping me out! Hopefully in the future I can be the person helping other with code :P
485
486
487
488
489
490
491
X