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

2015/5/17

Coding Help

Code10 Code10

2015/5/17

#
I have started off a new scenario, im planning to make a tower defense game. I want to spawn an actor once I click another actor. This is what im trying to do: if actor clicked spawn this actor. how could I do this in code? ive tried using If ObjectClicked(actor) do this: AddObject(actor) but how can I make it work?
azazeel azazeel

2015/5/17

#
how did you code the ObjectClicked(actor) and AddObject(actor) i mean give us a little bit your code
danpost danpost

2015/5/17

#
Code10 wrote...
ive tried using If ObjectClicked(actor) do this: AddObject(actor)
This is an improper way of showing what you have tried. You need to show the actual code you tried. Please read the 'Posting code? read this!' link below the reply box before posting the actual code you tried.
You need to login to post a reply.