At the bottom of the page is a link to the Beginner's Guide.
You need 'await' in front.
await sdk.GetImagePixelData().then(a=>
The background colour is on the Layer.
In Settings, make sure you have "Use simplified user interface" turned off.
Dark.
Copy:
-> Enemies: Set LastShockerUID to ShockerProjectile.UID
to the 'On collision' event also.
You need to get rid of the first code, it isn't what you want. Otherwise you'd have to post the project, as it isn't obvious what the problem is.
You just need to find the closest non-hit enemy then.
http://www.blackhornettechnologies.com/Construct3Stuff/Samples/DistanceBounce.zip
You'd have to post your code at this point.
Drag the enemies around to see them check if distance is within 200 pixels. The example will just draw lines both ways as there is no optimization to check if a line exists already, but you get the idea.
http://www.blackhornettechnologies.com/Construct3Stuff/Samples/DistanceWithinFamily.zip
Develop games in your browser. Powerful, performant & highly capable.
There's various ways of doing this. Cache the first coordinates, and compare those to the other enemies, or have a second enemy family, so you have two unique objects to check.
Member since 28 May, 2012