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

Report as inappropriate.

ahmadnur
ahmadnur presents ...

2020/5/17

What am i missing here?

No description.

1182 views / 6 in the last 7 days

Tags: game with-source

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

2020/5/17

Apparently, you are using setLocation instead of using move.
ahmadnurahmadnur

2020/5/17

Hi, Thanks for the quick response. Could you please tell me exactly which class of the code i'm getting it wrong? Would be great if you point it for me directly.
ahmadnurahmadnur

2020/5/17

I have changed all the setLocation to move in the asteroid class but, there is an error.
Weeb2.exeWeeb2.exe

2020/5/17

what is this error?
ahmadnurahmadnur

2020/5/17

Method in class greenfoot.actor cannot be applied to given types; 1. required. int 2. found:int int reason. actual and formal arguments lists differ in length
ahmadnurahmadnur

2020/5/17

That is what it says when i hover to move
Weeb3.exeWeeb3.exe

2020/5/18

can you show the updated code?
danpostdanpost

2020/5/18

Only parameter is a single int indicating distance to move. Remove any getX and getY (and a comma).

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

Who likes this?

No votes yet.