You don't need 8direction, see this demo:
dropbox.com/s/9vw1izsg97svbvo/WallClimbing.capx
You've already asked this question 10 months ago and many people told you that this is a bad idea and won't work.
You need to re-think the way you do zooming in your game, use different images or even layouts for different zoom levels.
Unfortunately, it's not possible to access variables by their string name. So the only option for you is to add a bunch of events like this:
If var_name="FRA_hue_red" then Set Result=FRA_hue_red Else If var_name="FRA_hue_blue" then Set Result=FRA_hue_blue Else If var_name="FRA_hue_green" then Set Result=FRA_hue_green etc..
Another solution is to use a dictionary instead of global variables. With dictionary you can easily access keys by name - Dictionary.Get("FRA_hue_red")
You can do this with image points only. On click, check distance to image point, for example:
Mouse on Enemy clicked If distance(Mouse.x, Mouse.y, Enemy.ImagePointX("LeftLimb"), Enemy.ImagePointY("LeftLimb"))<50 Destroy LeftLimb
"Bill's Yield: " & (round(tmpBill3 * 100) / 100)
You can try something like this:
Mouse On Click object Enemy System pick CoverSprite by evaluate CoverSprite.layerNumber >Enemy.layerNumber Mouse cursor is not over CoverSprite Enemy subtract 1 from health
Actually, this version is better:
dropbox.com/s/rrpxnmer3gwhl88/DoubleVirtualGamepad_v3.c3p
dropbox.com/s/xdzzq2fb2u8bjjz/DoubleVirtualGamepad2.c3p
Press F12 and open Console tab, see if there are any errors.
Develop games in your browser. Powerful, performant & highly capable.
Mouse On Click object Enemy Mouse cursor is NOT over CoverSprite Enemy subtract 1 from health
You do not have permission to view this post
Form control objects have problems with scrolling/sczling/z-sorting and are really not suited for these kind of games. I recommend making your own text input box with a Text or SpriteFont object.
Tutorial:
construct.net/en/tutorials/your-own-textbox-459
Member since 26 May, 2016