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.

Topics - Metaby

Pages: [1]
General discussions / DotNet
« on: October 08, 2008, 04:33:04 pm »
Hi, i learn C# in the school, but, i have programmed sfml with C++
I heared about, to use sfml at C#, i downloaded the svn version, and now, i have the folder "Dotnet" at the svn folders, i know, this is the .NET version of sfml, but where i should copy them at?

sry for my bad english

Window / [Solved] Input Problem!
« on: June 24, 2008, 07:22:15 pm »
Hello, since i downloaded and used sfml 1.3, it looks like that my input's dont workt..
in sfml 1.2 i used input:
Code: [Select]
void Player::MainMenu(RenderWindow *Game)
MousePosX = Game->GetInput().GetMouseX();
MousePosY = Game->GetInput().GetMouseY();
// ... my quellcode

this worked in sfml 1.2 very good!
but in sfml 1.3 my programm dont react on any input event
no key control
no mouse control
i looked into the Doc and the Tutorials but i don't get it working!

Im working on Windows XP Prof. with Visual Studio 2005 Express Edition

please need help >.<
and sorry for my bad english :P

Window / [Solved] Control Game Speed without Framelimiter
« on: May 18, 2008, 09:49:10 pm »
Hello, in the tutorial is a methode described to control the gamespeed without framelimiter... I have tried it, and to change the degrees of my angel var, to rotate the texture, it works.. but to walk forward / backward i use an complex calculation with degrees and radiants, and i dont know, where I should use the method to control the gamespee (GameSpeed * Game->GetFrameTime())
here is my calculation:

Code: [Select]
if (Game->GetInput().IsKeyDown(Key::Up) && HitStart == false && PosX > -15 && PosY > 5 && PosX < 972 && PosY < 738)
Backward = false;
X = 5 * cos(0.0174532925 * (Angle + 90.0));
Y = 5 * sin(0.0174532925 * (Angle + 90.0));
PosX -= (int) X;
PosY += (int) Y;

need help please, sorry for my bad english >.<

Graphics / Animation
« on: May 10, 2008, 10:30:32 pm »
Hello, I have 3 Pictures (.tga)

I would to make an animation,
while pressing a key, and the knight walks forward,
it should draw this animation
first draw KnightWalk1
second draw KnightStand
and last draw KnightWalk2

i haven't any idea to realize this, i have tried it with clock and integers, but nothing worked, a function to do this isn't availalbe too, have anyone an idea to realize this?
sorry for my bad english, mfg max

Graphics / Move by Keypressing
« on: May 10, 2008, 02:01:54 pm »
Hello, I have the following problem
I have an green background, and a Texture from a knight,
the Texture can be rotatet by using the Arrow Keys right, and left,
I have one variable named Angle

Angle = 0;

Angle goes from 0-360, by using the arrow keys, the number of arrow is changing, so we can rotate the textur,

but now, i want to let the knight walk, key up should move the knight into his line of sight forward, and key down should move the knight backward.

I have tried anything, but nothing worked right...
Does anybody has an idea ?

sorry for my bad english, mfg max

General discussions / error LNK2001 ...
« on: May 04, 2008, 10:55:24 am »
Hello, I use the Microsoft Visual Studio 2008 Express Edition Compiler and Windows XP SP2 32 bit,
I have downloaded the SFML-SDK and copied the .lib datas into the lib folder
and the .h datas into the include folder.
then, I have created a new Project (Win32 Application) in my compiler and have set the linker option "input", I included the lib "sfml-system.lib"
then i have tried the first code of this tutorial
Code: [Select]
#include <SFML/System.hpp>
#include <iostream>

int main()
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
std::cout << Clock.GetElapsedTime() << std::endl;
return 0;

When I compile it, it works.
But when I will debugg it, I get 2 failures:

Fehler   1   error LNK2001: Nicht aufgelöstes externes Symbol "_WinMain@16".   MSVCRT.lib
Fehler   2   fatal error LNK1120: 1 nicht aufgelöste externe Verweise.   C:\Dokumente und Einstellungen\Arantir\Eigene Dateien\Projekte und Anderes\Programmieren\SFML\Release\SFML.exe

It seems like Linker-failures.. what should I do?

sorry for my bad english ^^
mfg max

Pages: [1]