Not sure how else to respond except say yes it's still there
You add an instance variable (boolean) to the land and when you create the seed you set the instance variable to true. On the left conditions you add 'variable=false' so you can only plant if it remains false.
On sprite destroyed, sub event, add a local variable and set variable to choose(1,2), sub event again, if variable = 1, spawn sprite2 at location 1 etc
If you want more locations then you choose from more numbers and create more sub events.
Set a local variable to choose(1,2) and if 1 spawn at location A and if 2 spawn at location B.
If they are constantly updating then you can keep clearing the variable values for all enemies then use for each (ordered) by X that means from left to right across the screen to renumber them. Or you could trigger this whenever an enemy dies, or some other way.
Yeah that looks fine if you are spawning different bullet objects :)
And the events for the damage?
Depends on what the events are for firing. For example if the global variable is now 2 and fires ice then you change the damage variable under the events for GV=2.
> You could have a global variable number and add 1 to it when you press right, subtract 1 when you press left presumably. Then in other events you have conditions GV=1 - set ability 1, GV=2 set ability 2 etc. If you have bullets shown in game, based on GV you can set the animation of the bullet and damage stats etc. If possible could you show an example of this?
> You could have a global variable number and add 1 to it when you press right, subtract 1 when you press left presumably. Then in other events you have conditions GV=1 - set ability 1, GV=2 set ability 2 etc. If you have bullets shown in game, based on GV you can set the animation of the bullet and damage stats etc.
If possible could you show an example of this?
dropbox.com/s/pyxsk38qlbzc1mw/change%20ability.c3p
The explanation isn't great and we can't see what you're seeing so have to imagine it. Guessing though, you could give enemies an instance variable numbered 0,1,2,3 etc and use a global variable alongside it. Always point the view at the enemy where the instance variable matches the global variable. If you're moving left/right with the keyboard you can subtract/add 1 from the GV. So if GV=1 it points at the enemy where enemy.variable=1
Develop games in your browser. Powerful, performant & highly capable.
There's a pick nearest condition, use that and then the distance(obj1,obj2) expression.
If you really must turn off that condition then sure use a variable so the enemy can't be picked.
Member since 5 Aug, 2013