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 - Sanction

Pages: [1]
General / [SOLVED] sf::Event help
« on: January 10, 2018, 02:48:23 am »
I'm following the SFML Game Develoment by Example and I'm having a problem with the EventManager class. I know that the sf::Event have changed in the past versions of SFML. Can anyone help me out with this crazy error?

*Note I'm using SFML 2.4.2*


GitHub: https://github.com/SanctionMan/SFML_Project
(click to show/hide)


General / Help Creating a wxSFMLCanvus custom widget
« on: July 19, 2017, 04:22:17 pm »
I'm following this tutorial: https://www.sfml-dev.org/tutorials/1.6/graphics-wxwidgets.php

is this still possible with SFML 2.4?

General / Help with Game Loop
« on: October 06, 2016, 05:27:02 pm »
So I was working on game states a few weeks ago and I couldn't get the game states to transition. after look at the code and walking threw it, I never render I'm stuck within my loop and I don't remember what I changed.

Can anyone see what is wrong with this game loop? I'm stuck in the nested while loop.
(click to show/hide)

General discussions / embed SFML game in a webpage?
« on: October 05, 2016, 07:23:24 pm »
Is it possible to embed a small SFML game in a webpage? If so can someone point me in the right direction.

Graphics / [SOLVED]Can't load PNG Textures?
« on: August 13, 2016, 07:34:49 am »
trying to load a somewhat big texture file:

I'm getting an error that says this:
PNG not supported: 1/2/4/8-bit only

Never had this error before maybe someone can fill me in on what is going on.

*Apparently I just had to compress the textures.*

General / SetImage() no longer work?
« on: August 02, 2016, 06:16:42 pm »
I was following this tutorial: https://github.com/SFML/SFML/wiki/Tutorial:-Image-Manager
and when I got to this point:

test_sprite[i].SetImage( img_mgr.get_image( "test.png" ) );

Can you no longer use SetImage()? I'm using SFML 2.3.2
Can anyone Help? and would you suggest turning this ImageManager into a TextureManager?

General / Weird movement in my program[SOLVED]
« on: August 11, 2015, 04:00:32 pm »
I'm getting back into C++ before I forget it all.. I'm vary rusty. I'm following all the SFML books and tutorials.

The question I have is Why is my _Player movement is radical?
Is this because of the _Window.setFramerateLimit(FPS) ?

(click to show/hide)
(click to show/hide)
(click to show/hide)

General / Tutorial switch help?[SOLVED]
« on: August 10, 2015, 02:01:15 pm »
I'm sure this is a no brainer for some..

I'm getting a syntax error with: case sf::Event::KeyPressed: 'A';
Error says: case label value has already appeared in the switch

Is there a way to change the switch around to have multiple cases?
Thanks in advance!

(click to show/hide)

General / window.clear()?[SOLVED]
« on: August 06, 2015, 03:59:48 pm »
What I'm using: VS2013, SFML2.3

I'm learning the basics off of the website. and for some reason window.clear() method does not exists?
Is this because the tutorial is out of date?

(click to show/hide)

General / How to set Valocity with Frame rate?
« on: November 30, 2014, 08:29:13 am »
I'm trying to move mPlayer to Mouse Position when Clicked witch I have done..
but Now I'm trying to make the mPlayer move at a set speed over time.

How would do this with time? I can find my distance (MouseX - PlayerX) (MouseY - PlayerY) and set speed?
I'm new to game coding

My Code
(click to show/hide)

General / Help Compling 'SFML Game Development' book source code
« on: October 08, 2014, 01:25:00 am »
I follow the complete readme.txt file that comes with the source code from the book

The Error I get when I Compile the Project:
(click to show/hide)

General / Help with Static Build
« on: October 08, 2014, 12:58:11 am »
I've followed Compiling SFML with CMake tut step by step.. and I and create a Dynamic lib.. but I can't create static libs..

My Errors when I compile the static build:
(click to show/hide)

General / Help with Linking Error..
« on: October 07, 2014, 04:11:51 am »
Okay so I have played with SFML2.0 be for in the past on my old Computer so its not like this is new to me..
 But I I'm still new to Computer Programming and I did just get this SFML Game Development Book.

I'm running on my brand new Computer w/ Windows 8.1 64bit running VS2013..
I just made a cMake build from 2.1sources (can't create static libs because it won't load them to compile fuk idk) so I linked the libs Dynamicly ..

My Error..
1>------ Build started: Project: SFML2.1_Test, Configuration: Debug Win32 ------
1>main.obj : error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)
1>main.obj : error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Users\Matthew\Desktop\VS13 Projects\SFML2.1_Test\Debug\SFML2.1_Test.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Would this work?> http://en.sfml-dev.org/forums/index.php?topic=13010.0

Pages: [1]