15,902,634 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Denis Hristov (Top 9 by date)
Denis Hristov
12-Dec-21 9:34am
View
Hey, Bill
Thanks for replying and being so descriptive once again. I did in no way mean to ask you to write code for me, nor my teammates haha. I simply wanted someone to point me in the right direction, since we've been stuck on this for a while now and we haven't been able to get any help from other sources. Thank you in advance and I wish you a wonderful rest of your day! :)
Denis Hristov
12-Dec-21 3:23am
View
Hey, not so sure about the first bit. (would have to consult with my teammates)
But I do want the code to be able to check for errors in any size grid, since the application we're making includes 3 difficulties. (Easy, Medium and Hard) While the difficulty only changes the size of the subgrids, (2x2, 2x3, 3x3) there is still a total of 4 subgrids on every level.
Hope that helps! :)
Denis Hristov
6-Dec-21 22:28pm
View
I have added the requested things, except the WPF/WinForms one - no clue what that is as I am new to Unity in general. I have also commented pretty much everything in the GenerateGrid script, so I hope it could make it clearer to understand my intentions.
Denis Hristov
6-Dec-21 12:47pm
View
Hey, Gerry! So what you are saying is to basically try and edit the code of a 2D logic for the game if I happen to stumble upon it on the internet? I seriously don't know how to code such a big task myself, so that's why I'm relying on sites like this, as well as YouTube haha.
Denis Hristov
6-Dec-21 12:41pm
View
Hey! Hope you slept well. Are these plugins used to fill in code for you for specific functions? That's what I understood from it, at least. Also, I didn't understand whether or not you'd like to see the GenerateGrid script.
Denis Hristov
6-Dec-21 0:43am
View
Yes, I want the script to do just that - check the colum, row and subgrid that the selected tile is sitting on. The only issue is that I don't know how to implement that in a 2D Array. Would you like to take a look at the GenerateTile script, just to see if we're both on the same page here?
P.S. I will probably reply in a couple of hours, going to bed for the night.
Denis Hristov
6-Dec-21 0:40am
View
See, I thought that it would be the same too. But then I tried it, numerous times. I tried YouTube tutorials, GitHub repositories, even stuff from forums I was able to find scattered around. But it would seem like the 3D project really interferes with the ability of the 2D logic to function correctly. (Let alone all of the extra stuff that I need to either take out or add in for every project, just for it to not be as bloated)
Denis Hristov
6-Dec-21 0:13am
View
First, the GenerateGrid script is supposed to generate random values and not previously inputted ones. So, if one subgrid already generated specific values (lets say 1, 7 and 9), I'll need to let the code know whenever I put another value in and to REMEMBER it - hence the 2D Array. So if I put a 3 inside, that 2D Array would check if the specific subgrid, column and row have the specific number repeating and if one or more of them do - it will inform the user and highlight the error. If they don't, the number will simply be put in.
Also, the script only generates the grids for each level type (Easy - 4x4, Medium - 6x6 and Hard - 9x9), then stores the subrid sizes (Easy - 2x2, Medium - 2x3 and Hard - 3x3). I can provide the whole script if you want to take a look at it for yourself. That wouldn't be a problem for me.
Lastly, I do apologize for not being as clear as I should on these things. I am new to coding as you can see and with that come many things that I am still yet to learn about.
Thank you once again for replying and have a wonderful rest of your day!
Denis Hristov
5-Dec-21 22:00pm
View
Hello! That is a wonderful question. The reason why my game is set in a 3D environment and not a 2D one is because I'm making the numbers into various 3D images (of cartoon fish to be specific - it is going to be a kids game) and I need it to be 3D to be able to edit their look and positioning on the grid.
Show More