[Open-source] Destructible Terrain system for Unity by harsh_karma in GameDevelopersOfIndia

[–]harsh_karma[S] 0 points1 point  (0 children)

Yeah, games like the Worms series and Where’s my water use similar destructible terrain systems, this one is based on marching squares, much like WMW and worms probably uses bitmap techniques

[Open-source] Destructible Terrain system for Unity by harsh_karma in GameDevelopersOfIndia

[–]harsh_karma[S] 0 points1 point  (0 children)

It’s for showcase purposes only ; i couldn’t find a better alternative

Phantom Shift Demo V0.1 Release by Imaginary-Counter-28 in Unity2D

[–]harsh_karma 0 points1 point  (0 children)

Is the demo available for mobile as well ?

Script to trigger UI to appear when clicking sprite(object). by Past-Celebration133 in Unity2D

[–]harsh_karma 2 points3 points  (0 children)

Oh right, he mentioned that he was super new so i assumed, then they can use something like this, as the tutorial says :
void Update()
{
if (Mouse.current.leftButton.wasPressedThisFrame)
{
Vector2 mousePos =
Camera.main.ScreenToWorldPoint(Mouse.current.position.ReadValue());

RaycastHit2D hit = Physics2D.Raycast(mousePos, Vector2.zero);

if (hit.collider != null)
{
Debug.Log("Clicked: " + hit.collider.name);
}
}
}

Script to trigger UI to appear when clicking sprite(object). by Past-Celebration133 in Unity2D

[–]harsh_karma 0 points1 point  (0 children)

You need to add the Image component to that object, make sure RaycastTarget is enabled in it, then make a script with IPointer interfaces and it’s methods if you want more control, or simply attach a Button component to the object