Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Gihzah

Member Since 25 Jan 2006
Offline Last Active Jun 24 2012 06:49 PM

Topics I've Started

Bullet spacing consistency

22 June 2012 - 08:11 PM

I'm working on a scrolling shooter and I'm having a hard time figuring out how to keep the bullet spacing the same whether the player is moving forward, backward, or not at all. Right now I'm just adding an int value to the bullet's x pos in its update call. What would I need to do to get the effect I'm looking for?

Texture2D question

18 June 2012 - 12:11 AM

So basically I'm trying to add textures defined in my Game.cs class to a list called scrollingTextures defined in a class called ScrollingBackground.

I know this code doesn't work but it's basically what I'm trying to do.

In ScrollingBackground.cs
  public void AddBackground(Texture2D texture)
  {
      Texture2D textureDefinedInGame.cs = new Texture2D();
      scrollingTextures.Add(textureDefinedInGame.cs);
  }

In Game.cs
scrollingBackground.AddBackground(background);

What would I need to do to go about this?

Collision detection in C# via colored pixels?

10 June 2012 - 08:52 PM

I was trying to come up with a way to add collision to the scenery in my game without the use of a level editor. The best thing I could come up with is using an overlay image who's alpha value would be set to 0 and would contain pink pixels outlining the collision on the level - After which, I'd use pointF to draw the collision lines. I'm just not sure how I'd go about telling C# to detect the pink pixels and to put a point on them. Has anyone ever taken this approach? Is it even practical and or possible?

Problem loading sounds (OpenAL & c#)

31 May 2012 - 07:56 PM

I've been trying to figure this out all day/night and I am completely at a loss. Every time I run the code below I get an "Assertion Failed" error. It seems like the problem is with the LoadSound method in the SoundManager class. I've checked the binary directory of my project folder I think 50 times now to make sure the sound files are actually in there as well as the alut.dll, ILU.dll and OpenAL32.dll files...

These are all the classes in the engine related to sound as well as what's relevant in the form.cs file. Any sort of help or nudge in the right direction will be greatly appreciated Posted Image

Form1.cs
Spoiler


SoundManager.cs
Spoiler


Sound.cs
Spoiler


SoundTestState.cs
Spoiler

Songs written by pro. musicians

30 September 2007 - 01:27 PM

We're wanting to use a Sufjan Stevens song for the ending credits on a game that we're planning on selling. I'm sure we would, but I'm just woundering if we'd have to get permission from that artist... and how would you go about doing it? [Edited by - 44cll on October 1, 2007 4:13:31 PM]

PARTNERS