[Feature Request] VS Condition: 'Distance to other objects' can now accept a variable for the specified distance — Implemented!

  1. Application in the project:

I use [Distance to other objects] as a conditional check, and then fire bullets. For example, setting the distance to 500.

This condition essentially becomes [Attack Range].

  1. Feature to implement:

I want to add an [Attack Range] attribute in the game, which can be modified by the player through leveling up.

  1. Request:

Therefore, I hope that in VS’s condition: [Distance to other objects] — specify distance — value (where variables can be added).

This way, I can easily change the [Attack Range] for the player’s bullet firing.

PS.

If the official team adds this feature, I will wait for AGM’s official update before implementing it.

If the official team cannot add this feature in the short term, please let me know so I can use alternative methods to implement this functionality first.

Thank you very much!

2 Likes

Thanks for the request! Distance from Other Object taking a variable has already been requested internally, and I’ve added your post to that ticket to give it a push. I can’t say if or when it’ll happen though.

For now, what I’d probably do is keep the attack range level in a variable and make one link per level going to your shooting state. Each link checks the level with Switch/Variable Changed and has Distance from Other Object set to that level’s distance, so level 1 at 300, level 2 at 400, level 3 at 500 and so on. It’s more links, but you don’t need any extra states.

Thanks for Mr. Baz’s suggestion. I want to increase the player’s attack range when they purchase an item, and this range will vary dynamically depending on the item.

For example, the initial range is 500. Some items might add +5, others +10, and some +100.

Therefore, it’s not easy to implement by simply adjusting the range based on tiers.

I’m still looking forward to adding variable functionality.

I’ll put development of this feature on hold for now and focus on advancing other features first.

Hello,

Regarding the request received here, we have enabled the value for “Distance from other objects” to be specified from “Variables,” “Shared Board Values,” “Project Variables,” and “Database” in Ver. 2.1.1 released today.
We would appreciate it if you could update and try it out.

Thank you for your request.
We look forward to your continued support.

1 Like

This feature has been implemented in the game project, so now you can judge the attack range by freely adjusting this value in the “Hero Attributes” menu!

Many thanks to the developers for implementing this feature, and also for your quick reply to this thread!