Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rm2kmaster

Pages: 1
1
Ran into another conundrum
Currently, my enemies from one side of the screen to the other, and when one dies, the rest speed up.
The issue with this is that a speed update is only run once one of the sides is hit and it "sets x-speed to [enemy speed] for self"
Is there anyway to make it so that the x-speed is constantly mirrored with the enemy speed variable so that the speed of the enemy updates as soon as another enemy dies?

This is a small thing, not too worried if a solution is a bit too out of my skill range at the moment!

I've never really had any deailing with code before, figuring out solutions to problems is one of the most satisfying feelings i've ever had!

2
Thanks.
I'm still not as far as behaviors yet so i've no idea how they work - do they have to be referenced to be able to edit an attribute for another actor?

EDIT: Never mind - figured it out! Thanks very much for your help!

3
Ask a Question / Changing an attribute for all instances of an actor
« on: July 28, 2015, 01:30:27 pm »
Hi Guys

I'm working through the tasks at the end of the crash course 2 tutorial and i'd like it if that every time one of the enemy space ships died, the rest would speed up by a certain amount. However I only seem to be able to edit the 'speed' attribute for a a single enemy at a time.
For example: In the 'death' event for the enemy I have put "increment 'speed' by 10" before "kill self". This obviously only affects the ship that the event is running on.
I've also tried imputting a "for each actor of type: enemy ship" block  in before the increment (see attachment)but this doesn't seem to work either...
I assume i'd need some kind of attribute type that spans all instances of an actor...?
I really thought I was starting to get on a roll when i'd gotten them to move but this has brought me to a real stop!

Thanks

Pages: 1