ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Directional proximity question
person icon
loopy
Registered User
Quote
2024-01-19 17:23:40

If I have an equirectangular heightmap and want a character to instantly teleport "move by vector in facing direction, how can I avoid retriggering the teleport action when instantly jumping to other side of the map? The node on the other side of the map sends me back where i started. The directional proximity behavior uses a center point of a node to detect directional movements towards it. How would i make it so the character jumps across the terrain. Can avoid a ping pong effect by temporarily cloning a set nodes to change a position of the player and then removing them?

person icon
cmaiia
Registered User
Quote
2024-01-19 17:34:58

I don't understand it very well. but it seems that you enter an area with your character and there is a teleport with the behavior "in proximity do something" so it sends the character to another side of the map but in this place there is also a teleport that ends up sending him back... do you understand?

person icon
loopy
Registered User
Quote
2024-01-19 17:38:19

I guess was just mixing up the 2 behaviors on proximity and directional proximity but I am not at home by my pc all I know is that I was having issues when I worked on my project. Because the directional proximity uses the object center point I was unable to achieve the effect I was aiming for. As if I placed 4 large nodes around a map the behavior wouldn't detect the player approaching unless it went through the direct center. If made a bunch of nodes zipping across the sides of the terrain there would gaps and the player would walk over to my dummy terrain. Which isn't infinite.

person icon
loopy
Registered User
Quote
2024-01-19 17:49:20

The "on proximity" of course caused the ping pong situation. I have 9 of the terrain tiles surrounding a main center tile. Which is the play area. The adjacent tiles are the same as center but are just there as visual "dummies"

person icon
loopy
Registered User
Quote
2024-01-19 17:55:20

That's 8 adjacent tiles. Lol. Eight surrounding the 9th which is the center play area.

person icon
cmaiia
Registered User
Quote
2024-01-19 19:43:31

without a photo or drawing, it's hard to understand.

person icon
just_in_case
Moderator
Quote
2024-01-20 07:05:09

Checkout my itch.io page, I have an extension for directional proximity.

I also have another extension (not uploaded to itch.io) same as directional proximity which check the box behavior instead of the center point, I will upload that extension soon, it's already lying on my PC.

So maybe that might help you.

You can have a look at my other extensions as well:-

https://vazahat.itch.io

person icon
loopy
Registered User
Quote
2024-01-22 00:43:14

Well, I am looking forward to the new directional proximity behavior. I think would also very good ai and weapons in fps and tps games as well.

person icon
loopy
Registered User
Quote
2024-01-22 00:45:04

Correction: it would be good for those purposes I mentioned above.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |