Jump to content


exxod

Member Since 30 Jan 2007
Offline Last Active Apr 11 2010 10:00 AM

Posts I've Made

In Topic: Competition 05 Ideas

01 January 2010 - 04:35 PM

1. I'm assuming that Sandy means you can use ESC like it's normally used - to go back to the main menu or to quit. Of course, you may want to have some sort of prompt ("do you want to go back to the main menu?"). As far as I can tell, that is also allowed.
2. You should have rights to the resources you are using, not because they will disqualify you if you don't, but for legal issues. You can use free sound effects on the internet if they are in fact (royalty) free. However, they're not probably not going to disqualify you even if you use copyrighted sounds.


Thank you for your answers. Of course I was going to have the "Do you really want to exit?" prompt and I'm not going to use other peoples sprites, I just don't know how to make my own sounds and music and I can't have a game without any noise...

In Topic: Competition 05 Ideas

01 January 2010 - 12:35 PM

Well seeing the limit in controls, most games will either be platformers, puzzles, or adventure games. RTS and RPG games will be difficult but not impossible. The game I'm working happens to be an RPG with a tint of turn-based quality(kinda hard to explain) and the only problems I see are the lack of sound effects, music, and length of the game. The real ideas of this competition are not going to be the genre/type of the game, but how you place what little keys you have available and how far you stretch the space of your resources. The game that uses the best control scheme will be the victor I think.

-Off Topic-
(I have two questions for the competition if anyone can answer them please)
1. I heard that esc can be used to open up a menu from a previous post, does that mean a full menu or just to save/quit?
2. Do the resources have to be fully yours? Or can you use free sound effects found on the internet... :blink:

In Topic: How Do You Say This Right?

11 November 2009 - 09:13 PM

I'm pretty sure it's:
with(instance_nearest(x,y,obj_blob))
instance_destroy()

In Topic: Top Down Shooter Melee

05 November 2009 - 11:56 PM

iVe written this code, but i dont know how to finish it. I want it to check if the sprite is the animation sprite, then i want it. To check if both the mouseparent object and playe are near to hit him. Please help and explain what you did. Thanks

edit: sorry for grammar. Spelling is a pain on an ipod touch

//Mouseparent is an object that follows the mouse
if (right click) {
Sprite_index=animation{
If mouseparent.distance_to_object(obenemy)<20 && obplayer.direction=(something in here){
enemy.health-=50}
}


Hmm im a bit confused also... but if you want to check if the sprite is the animation sprite shouldn't there be an 'if' before sprite_index = animation? Or is there an error with your code and it isn't working?

//Mouseparent is an object that follows the mouse
if (right click) {
if Sprite_index=animation{
If mouseparent.distance_to_object(obenemy)<20 && obplayer.direction=(something in here){
enemy.health-=50}
}

In Topic: Ds_list Variables?

01 November 2009 - 05:27 AM

ds_lists are single value entries. Though you could argue that the position in the list is a value too, which is true.

A map actually has two values, a key, and an actual value. The functions aren't the same for them though, but you can for example use ds_add(500,"tree"), sure. The key is numbers only though, as far as I know. I'm not a big fan of maps myself, I use them every now and then to store say a quantity(value) for a given item ID(key).

Usually though I end up wanting more than 2 values. I recommend using grids myself, it's the only datastructure that really allows multiple values for each entry.
You could also condense values. Basically you put a lot of values in a single one. For example, you enter as value '"Sword"|50|10|"Super Sword"|3'
Then when you need to read the values, you parse it and separate values based on the | character. The first value, the name, would be "Sword", the second the dmg rate, the third the hits per second, the fourth the description, the 5th the quantity in your inventory, for example. It's not difficult, but it's not necessary either so if you're new to GM just skip it for now and use a grid or arrays:


Arrays are not as fast as datastructures, but it is easier if you're new to GM. And unless you're doing an insane amount of database work and make thousands of calculations every second, arrays will do just fine. Also, it's faster to use an array than to use a ds_list and condense values, then parse them later.


Right, thanks for the info. I'm not new to GM I've just never really messed around with ds_stuff. I guess I'll try arrays out.