Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Charlie

Pages: [1]
1
DotNet / Re: not so smooth transition to C# (sharp noob lol)
« on: May 29, 2012, 09:18:56 am »
yep that did it. thanks...and of course now it looks so obvious. :) lol

2
DotNet / Re: not so smooth transition to C# (sharp noob lol)
« on: May 29, 2012, 09:13:36 am »
Hmmm that was actually exactly what I was attempting but when i do I only get these options:

if (Keyboard.IsKeyPressed(Keyboard.(Equals/isKeyPressed/Key/ReferenceEquals) )
{
}

3
DotNet / Re: not so smooth transition to C# (sharp noob lol)
« on: May 29, 2012, 08:36:22 am »
yeah i've looked at that and see:


public static bool IsKeyPressed(
   Keyboard..::..Key key
)

but i still dont get the actual syntax to be used.....

4
DotNet / Re: not so smooth transition to C# (sharp noob lol)
« on: May 29, 2012, 08:22:57 am »
well I'm using 2.0..didn't see any tutorials besides the setup part..
In C++ I used GetInput().isKeyDown .....i think that was 1.6 though.

basically not picking up on the syntax..

I'm just wondering what the actual syntax is for using isKeyDown ...don't actually need sprite moving code

5
DotNet / not so smooth transition to C# (sharp noob lol)
« on: May 29, 2012, 08:08:37 am »
I was messing around with the dot net library and GAAHH I dunno why I'm having such a hard time with it, but I can't even figure out how to do keypressed to make a sprite move..
Someone tell me and make me feel stupid now lol.
So far I'm way more confused with C# than with C++! lol

6
General / Need help passing sprite object as parameter in function
« on: June 15, 2011, 11:35:15 pm »
Thanks, that's what I needed. :)

7
General / Need help passing sprite object as parameter in function
« on: June 15, 2011, 11:17:15 pm »
I'm not the best with C++ and was wondering how I can pass a sprite object as a parameter in a function.. I have an example below.
Note the example serves no purpose, I'm just wondering how this is executed correctly..

This is the function:
Code: [Select]

void SetX(sf::Sprite object)
{
object.SetX(100);
}


This is the call to the function:
Code: [Select]

SetX(Sprite3);

8
Graphics / Drawing Tile Map: 1 Pixel Between Tiles
« on: June 15, 2011, 04:56:29 am »
Thanks! That was the problem.

9
Graphics / Drawing Tile Map: 1 Pixel Between Tiles
« on: June 15, 2011, 04:38:40 am »
In other languages I have used, this is the code I use to draw a tile map.
When I use the code below it causes a "grid" to be drawn because there is a one pixel boundary between each image. Why is it doing this?

Code: [Select]

//Draw Grass Tiles
for (int y=0;y<SCREEN_HEIGHT / TILE_SIZE;y++)
{
for (int x=0;x<SCREEN_WIDTH / TILE_SIZE;x++)
{
Sprite.SetPosition(x * TILE_SIZE, y * TILE_SIZE);
App.Draw(Sprite);
}
}
[/code]

10
DotNet / A couple 2.0 dotnet questions
« on: June 13, 2011, 09:54:37 pm »
After I compiled sfml 2.0 in my bindings/dotnet folder  in the lib folder there is only an x64 folder with dlls, while the extlibs folder has both x86 and x64 ..
I don't have an issue with using x64 as my pc is 64 bit.
But will this run on a 32 bit pc if I make something with it?
Should there be an x86 in the lib folder?

My next question is ..  are there dlls for network and system for dotnet?
If so I don't see them.

Just started messing with SFML...
I could not stand XNA due to the structure of the coding..
SFML seems awesome. just have some questions im not sure about so far :P

Thanks!

EDIT: nevermind the system and network question..i realize they arent needed in c#

Pages: [1]
anything