|
601
|
Player / General / Re: Google+
|
on: July 11, 2011, 03:52:07 PM
|
|
Anyone want to send me an invite? andrewnare [at] live.com
|
|
|
|
|
602
|
Developer / Technical / Re: So what engine are you using?
|
on: July 11, 2011, 12:04:10 PM
|
|
I've been using Game Maker a lot recently since I got the pro version. But I also use Unity for 3D games, and occasionally using various other things like SFML/C++, Love2D, Java/Slick2D, etc.
|
|
|
|
|
605
|
Developer / Technical / Re: HELP! I need help, programming problem!
|
on: July 10, 2011, 05:59:37 PM
|
That code is almost right. Change with(instance_create(x, y, o_projectile)) to with(shoot) and it should work fine. if (keyboard_check(ord('X'))) { if (firingDelay > 0) { firingDelay -= 1; } else { shoot =instance_create(x, y, projectile); with(shoot) { speed = 5; direction = point_direction(other.x, other.y, x + face, y); } firingDelay = firingDelayMax; sound_play(sShoot) } } else { firingDelay = 0; }
|
|
|
|
|
606
|
Developer / Technical / Re: HELP! I need help, programming problem!
|
on: July 10, 2011, 05:53:26 PM
|
I usually have a variable named dir, which represents the direction of the character. If I'm facing right, dir = 1. If I'm facing left, dir = -1. When shooting I can directly use dir to tell it which way to shoot. with (instance_create(x, y, o_arrow)) { speed = 5; direction = point_direction(other.x, other.y, x + dir, y); }
The use of point_direction may be a bit overkill for this situation, but I haven't had issues with it so far. Also not sure if this requires pro or not (I don't think it does)
|
|
|
|
|
607
|
Feedback / DevLogs / Re: Dungeons And Sewers! 0.0.0.3.6 (DEMO AND CREEPERS)
|
on: July 10, 2011, 12:32:08 PM
|
|
That depends on the type of inventory, such as slot-based or list-based.
For slot-based I usually use a 2D array with references to the item in the slot. When I want to pickup an item, I loop over the array until I find an empty space then add the item to that spot. Getting items is very easy since you can directly access an item by its position in an array.
For list-based I'll use a linked-list, and just add items to the end of the list when I want to pickup an item. Getting items requires iterating over all the items, but this isn't really an issue since you typically shouldn't have very many items at a time.
|
|
|
|
|
609
|
Player / General / Re: Something you JUST did thread
|
on: July 10, 2011, 01:05:32 AM
|
|
Watched my dad rage when the power went out right after he had organized his inventory and carefully upgraded his character's skills in Two Worlds Two.
|
|
|
|
|
612
|
Player / General / Re: Things that Suck
|
on: July 09, 2011, 05:30:27 PM
|
|
I miss shows like Rugrats, The Wild Thornberrys, and Invader Zim. Those and Spongebob were the only shows I liked on Nickelodeon.
|
|
|
|
|
616
|
Player / General / Things that REALLY rock
|
on: July 09, 2011, 11:06:54 AM
|
Started the second season of K-ON. The theme song is irritating as fuck, but the show's still good for a couple of laughs.
I didn't think it was that bad, but first season's was better.
|
|
|
|
|