• 13
• 16
• 27
• 9
• 9
• ### Similar Content

• While looking out for that pesky Terrator, our little alien is doing a bit of relaxed mining down on the new gas planet "Lelantos" this weekend....

• I have a native iOS game (objective c, XCode build) which I am considering to port to other platforms.
Core gameplay is based on solely on geographical maps, and custom drawing over maps. It also has Core Data. This part is complete in development.
What is not done yet is: monetization, gamification (leaderboards, challenges) and multiplayer functionality.
As I think more about it, I am tempted to think if this is the right time to move to a cross platform tool such as Unity. But before dedicating time to port my 5 years side-project effort in Objective C, I really want to know if its worth it.
- Does Unity support such plugins / assets that will fulfill all my above requirements?
- Unity Personal seems to have only 20 concurrent users - is it too costly scaling if I decide for extending to web and android platforms?
- What is the general workflow involved in publishing to iOS, Android, PC, and web platforms while using Unity? I mean to ask about various points of signing stuff, paying fees and getting certified.
- How long will it really take to port my entire Objective C project into Unity? I am somewhat familiar with C# but I am finding it hard fidgeting with Unity IDE as lot of things are focused around FPS and 3D while my game is still 2d - not much action involved. I seem bit overwhelmed by the list of features I see there. All in all, I do not want to lose my momentum while still making sure its portable to everywhere.
- Any assets I could use (for free to try basis in debug) that are relevant for my game?
- Last but not the least, are there any costs that I need to be paying upfront to Unity, for using it (apart from their monthly subscription model)? I don't understand their costing for multiplayer in conjunction with their subscription fees - if someone could kindly elaborate.
• By GytisDev
Hello,
me and few friends are developing simple city building game with unity for a school project, think something like Banished but much simpler. I was tasked to create the path-finding for the game so I mostly followed this tutorial series up to episode 5. Then we created simple working system for cutting trees. The problem is that the path-finding is working like 90% of the time, then it get stuck randomly then there's clearly a way to the objective (tree). I tried looking for some pattern when it happens but can't find anything. So basically I need any tips for how I should approach this problem.
Use this image to visualize the problem.
• By aymen
please any know how can i' calculate the centroid from any number vertices

• Good day sir/maam. I am developing a game for my thesis and im done with multiplayer and plan to start the implementation of AI but i dont know how/where to start. Please give an advice. I am developing it in C# using UNITY.
Im am now collected all pieces that has possible moves but i am stuck on which best move to select. I hope you will help me. This is link explained the game https://en.wikipedia.org/wiki/Game_of_the_Generals

# Unity [.net] MDI troubles - Can't set child to the main form (C#)

This topic is 4467 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

In my Other topic I say how I've begun work on a level editor for the game Breakout with C#. I have the one main form (frmEditor) which has a menu and acts as a parent window for the MDI. File->New brings up another small window that takes a few values to start set up of the level (frmInitLevel). Once the users clicks the OK button on that new initializer form, I have a 3rd form created. This form is the level itself and I would like it to become the child window of the main form. I have the following code in the frmInitLevel OK button click event:
		private void btnOK_Click(object sender, System.EventArgs e)
{
frmLevel NewLevel = new frmLevel();
NewLevel.MdiParent = LevelEditor.Editor;
NewLevel.Show();
this.Dispose();
}

Now the problem is that I can't really access Editor from the LevelEditor class since the Editor form is being used as the main form in the Application.Run() procedure: LevelEditor.cs
using System;
using System.Windows.Forms;

namespace Breakout_Level_Editor
{
public class LevelEditor
{
public static frmEditor Editor = new frmEditor();

static void Main()
{
Application.Run(new frmEditor());
}
}
}


Since there is no named declaration of the frmEditor used Application.Run(), I'm unable to set a child window from another class. I was thinking of trying to use static bools or something of the sort but when you start coding like that, things get to be such a mess. Images:
the main form (frmEditor) frmInitForm frmLevel [Edited by - Ekim_Gram on December 18, 2005 10:44:12 PM]

##### Share on other sites
If I'm understanding you correctly, why don't you just pass the frmEditor's this reference to the frmInitForm when creating the frmInitForm?

##### Share on other sites
Quote:
 Original post by SiCraneIf I'm understanding you correctly, why don't you just pass the frmEditor's this reference to the frmInitForm when creating the frmInitForm?

Could you supply some example syntax for me?

##### Share on other sites
Your frmInitForm constructor probably looks like this:
    public frmInitForm() {      InitializeComponent();    }

Change that to:
    public frmInitForm(frmEditor editor) {      InitializeComponent();      editor_ = editor;    }

Add a frmEditor variable called editor_ to the frmInitForm, and when you construct the frmInitForm, pass this to the constructor.

Edit: Alternately you can make your frmInitForm's OK button have a DialogResult value of DialogResult.OK (and give the Cancel button a DialogResult of DialogResult.Cancel) and have the frmEditor check the return value of the ShowDialog() and initialize the frmLevel form itself.