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

2016/11/18

Spawn in fixed location??

Nomabear Nomabear

2016/11/18

#
I'm super new to this, wondering if I'm doing this right or not? world class addObject(mainbrick(), xLocation, yLocation); x = int; y = int; not sure what code to use to fix a spawn point for an actor
Baguette Baguette

2016/11/18

#
Try something like this?
public WorldName()
{
int x=500;
int y=500;
addObject(new mainbrick(),x,y);
}
You need to login to post a reply.