Ok after watching the game for a little while here is what I see.
on spawn resets green life on all enemies, but not life thus making green bar reappear on death.
There needs to be some kind of for each statement to determine what is happening to each.
also I disabled everytick as it was not needed. per what I was reading in the code.
Found another way to do this but I am still curious how other people would realize this. This is how I did it: I created a white sprite 1 px high and I have one variable for the los range and one for the cone of view. When the player hits an enemy I start a for loop with that counts a variable up by 1 until it matches the cone of view. This for loop creates one of my sprites at the players position and with the angle set to Player.Angle+(coneOfView/2)-count. This creates sprites in the exact angle of the cone of view. I set its length to los range and this creates a cone that matches exactly my cone of view and range of sight. The sprite has the fade behavior set to 0.1 so it just flashes and quickly fades away. Maybe I have to make it higher then 1px for greater angles to minimize the gaps between the created sprites but it should work.
Found another way to do this but I am still curious how other people would realize this.
This is how I did it: I created a white sprite 1 px high and I have one variable for the los range and one for the cone of view. When the player hits an enemy I start a for loop with that counts a variable up by 1 until it matches the cone of view. This for loop creates one of my sprites at the players position and with the angle set to Player.Angle+(coneOfView/2)-count. This creates sprites in the exact angle of the cone of view. I set its length to los range and this creates a cone that matches exactly my cone of view and range of sight. The sprite has the fade behavior set to 0.1 so it just flashes and quickly fades away. Maybe I have to make it higher then 1px for greater angles to minimize the gaps between the created sprites but it should work.
sounds solid to me. just don't really understand the difference between that and just playing an animation that would step through the whole thing step by step without all the extra coding. Good luck.
From what I am reading. I would say use joints where on event play swing animation at joint. or at Image point what ever works for you.
persist is a behavior and is added to objects just like adding movement (pathfinding, bullet, platform) it is in the first row under the behaviors list.
I had to use it with this demo.
https://www.scirra.com/arcade/game-mana ... me?ID=5070
To have the doors remember if they where opened or closed when I player was last on the layout.
there are a few ways of doing that.
Layers, layouts with hidden areas, multiple layouts with create object on start of layout and set variables.
using persist if you have items that need to remember status even when off screen.
bullet movement on over object or on collision with object set angle
you do not need an array to set waypoints.
you can set instance 1,2,3,4,5,6 and so on. if over 1-6 set find path to next 1-6 if 6 then find path to 1
Develop games in your browser. Powerful, performant & highly capable.
I am not quite sure what you are doing but it sound like it should work on left click set width -80 then again and again from how you have written it above. until bar starts to grow the other way or maybe if bar width less then 80 it might not get smaller. So you might need a bar that is 80 x the amount of times you want to reduce it.
I am not quite sure what you are trying to do, But you could look at mini maps or in game maps.
Hello please show code.
As you should be able to set on collision = stop
or set position to player.
not quite sure what your wanting..
Bag?
pickup = event = variable true
drop item = event = variable false
look at break out examples for more details on how to achieve what you are wanting to do.
on collision with object bounce off.
How many cars? for each?
did you add pathfinding on out of sight find path and move along path?
Member since 27 Nov, 2015