Create a clone of an actor - SOLVED

johnjanowskibsc

  • Posts: 90

Hi again,

I'm trying to create a clone of the arrow actor.

http://www.stencyl.com/game/play/40246

When the player presses shoot I would like an arrow to appear which would be fainter than the main arrow - so the player can see their previous angle of attack. The only problem I've got is my code for the camera follows the ball which is the last created actor. If I were to create an arrow actor then the camera would follow this. I'm trying to play around with having 2 arrows at the start - one is hidden and only appears when the shoot button is pressed. Just can't get it working at the moment.

Any help as always is greatly appreciated

John

.....

Have solved this but will put up the solution.

I made a copy of the arrow and stripped out all the code. I then had it pointing to the shot direction after pressing shoot and made it show when attempts were greater than 1

« Last Edit: August 11, 2019, 01:48:04 am by johnjanowskibsc »

JeffreyDriver

  • *
  • Posts: 2169
You could also have done it with the image API.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk