Jump to content


Silas051

Member Since 15 Feb 2012
Offline Last Active Jun 14 2012 02:05 AM

Posts I've Made

In Topic: Rotatable Menu

15 May 2012 - 12:47 PM

very cool. will use and give much due credit :)

In Topic: Top-downish Strategy Game

13 March 2012 - 02:30 PM

If it's more empire vs empire, you should probably start with pre-made colonies or military outposts and have objectives, with little focus on the market, and a very large map.


this is what I'm going to shoot for, though planet systems in the middle might be neutral at first.
I did toy around with the idea of having randomly generated space pirates, cosmic events like meteor showers.
The economic system is most likely just going to be flat money/credits/whatever currency i use. Having more planets increases that, though metal, gas/fuel might come into play to add some variety. Version 2 definitely will have that, but i'm trying to keep things kinda simple at first

In Topic: Moving objects with the mouse

28 February 2012 - 09:50 PM

yeah, I was trying to keep myself from just asking what the code was. I really would rather figure it out myself using your hints, but I didn't understand, and still kind of don't, the functions like collision_point. I'm going to try and use and understand what you gave me, and if that doesn't work out, I found a youtube video where that's the first thing the guy talks about. Probably should have just done that in the first place  :\

Thanks for the help though, I think I at leats get the concept of what you're saying

In Topic: Moving objects with the mouse

28 February 2012 - 09:17 PM

First things first, are you using the drag and drop icons or GML? Because I can help you but in GML...

There are multiple functions that are returning the ID of an instance. Per example, "instance_create()" or again, "collision_point()".
To stuck that info the function returns, you need to declare it as a variable like that:

NewVariable=instance_create(x,y,obj);

Now "NewVariable contains the ID of the newly created instance.


I'm using GML. I'm still a little confused. If I say that the Newvariable is "moving_object," or something like that, what do I put for obj in the "NewVariable=instance_create(x,y,obj);"  code?

In Topic: Moving objects with the mouse

28 February 2012 - 08:54 PM

You are probably near success. Here's some logic hints:

You need to catch the ID of the object that just got selected into a variable.
Then you address that instance of an object and tell it to place itself at the destination mouseX and mouseY.
Your destination are also variables and they are set when you right click somewhere.


those make sense, but I'm not sure how to go about doing them. I don't know how to tell a specific instance to do something when there's more than one of the same object. Also, is it possible to set coordinates as a variable?