Jump to content

forecaster1310

Member
  • Posts

    61
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

forecaster1310's Achievements

  1. My level editor works by scanning a Texture2D and searching for specific colors. If it finds the color, it instantiates an object. I want to make a folder that you can drop your maps into and the game will take the png and make a map. How can I do that? Here's my code so far... It works but the folder feature doesn't. < using System.IO; using UnityEngine; public class LevelGenarator : MonoBehaviour { public Texture2D map; public string LevelFileName; public ColorToTile[] colorMappings; // Start is called before the first frame update void Start() { GenearteLevel(); } void GenearteLevel() { for (int x = 0; x < map.width; x++) { for (int y = 0; y < map.height; y++) { GenerateTile(x, y); } } } void GenerateTile(int x, int y) { Color pixelColor = map.GetPixel(x, y); if (pixelColor.a == 0) { // that means that the pixel is transparent so we don't need to make any tiles... return; } foreach (ColorToTile colorMapping in colorMappings) { if (colorMapping.color.Equals(pixelColor)) { Vector2 pos = new Vector2(x, y); Instantiate(colorMapping.prefab, pos, Quaternion.identity, transform); } } } } >
  2. I don’t really have a budget and my pc is pretty good
  3. I will be ironic if it will be the worst game in 2020
  4. I have preety high end hardware. Outside of cyberpunk what do you think?
  5. Assasin's creed: Valhala, Watch Dogs:Legion, Doom Eternel, SW: Jedi fallen order, Boardlands 3 oir wait for cuberpunk 2077?
  6. Hi, I wantt to add vibrations into my app. The vibration is suppose to start after a button is pressed.
  7. It's supposed to show more suggestions but it deosn't.
  8. but then if I write 5 and 3 it shows 5 is smaller then 3
×