Alright, I love defense games like Protector and Desktop Tower Defense 1.5 and I'm trying to make my own with Scratch. It's my first project so I'll probably keep going here with new questions, but right now, the most pressing one is:
How do I script a sprite so that it changes costumes depending on where another sprite is? What I want is for the gun on my turret to move based on the position of its target. I've tried my own scripts, but none of them work right. Please help!
Last edited by canihaveanother (2008-03-30 16:45:00)
Offline
Rather than change the costume, use "point in direction of" to point at the chosen sprite.
But I have to say, you have chosen quite a difficult 1st project - defense games with auto-firing towers can be quite a challenge - I have not seen a good one yet, on scratch.
Offline
Defense games would be very difficult to make in scratch mainly due to the lack of sprite duplication. Most games like this I've seen have many sprites on the screen at a time.
Offline
Alright I actually have not just a cannon type gun but a sort of tower, so I had to make the actual gun part a separate sprite, but in looks okay now. Thanks for the help everyone; be back probably soon with more questions!
Offline
you would need a lot of sprites or make the enemies hard to kill for a def. game
Offline
I wonder if it would be possible to fake "crowds" of enemies usign costumes.
Costume 1:
O O O
O O
Costume 2:
O O
O O
etc.
As long as the rotatiojn point is right at the back of the costumes so that it appears that the enemy at the front is the one getting shot...
Offline
thats a good idea try that...
Offline
Is there a way to enable more fonts/font sizes in the editor mode? It's driving me crazy!
Last edited by canihaveanother (2008-03-31 14:40:52)
Offline
Mayhem wrote:
I wonder if it would be possible to fake "crowds" of enemies usign costumes.
Costume 1:
O O O
O O
Costume 2:
O O
O O
etc.
As long as the rotatiojn point is right at the back of the costumes so that it appears that the enemy at the front is the one getting shot...
That's a cool idea. I'll try that (eventually). I'm just working on making the basic mechanics work and look right (1 enemy, 1 turret) .
Last edited by canihaveanother (2008-03-31 14:41:35)
Offline