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

Pages: [1] 2 3 ... 5
1
I'm having some problems with Chapter 4 covering the Event Manager.

At the end you should be able to move a simple texture around with Mouse Left Click and also the LShift key.

However when I load the keys.cfg I found a weird problem.
(click to show/hide)


I do have my code on github:https://github.com/SanctionMan/SFML_Project/
I have went back though my code again and copy and pasted the code from the example code and I still have the same problem. I've also walked thought this form post hoping to find the same problem. Maybe I'm missing something here.

I am using SFML 2.4.2 ATM and also have changed the following that you showed in a post before here.
if (bind->m_details.m_keyCode == -1) {
// changed != to ==
 

I'v created a function that prints out all the bindings and events in each binding and its reading them all.
(click to show/hide)




2
General / Re: sf::Event help
« on: January 10, 2018, 12:21:17 pm »
Thanks eXpl0it3r, I completely forgot to compile with x86 instead of x64 when I pulled it from Github.

3
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*

Error:https://imgur.com/a/w6uUR


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

Thanks!
Sanction

4
General / Re: Help Creating a wxSFMLCanvus custom widget
« on: July 20, 2017, 04:29:43 pm »
So I reached out to the wxWidget community and got some very helpful feedback.
Post: https://forums.wxwidgets.org/viewtopic.php?f=1&t=43670&sid=3c349aac924af20b6c340fa459c0fb7f

You can find an example wxSFMLCanvus widget
Here:https://github.com/4ian/GD/blob/master/GDCpp/GDCpp/IDE/Dialogs/wxSFMLCanvas.cpp

I don't mind making a quick tutorial but it might be a few weeks, I have twins due any day!! :D
I still haven't figured out how you would implement events yet. I still have some research to do.

5
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?


6
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)

7
General discussions / Re: embed SFML game in a webpage?
« on: October 05, 2016, 10:42:40 pm »
Thanks Hapax

8
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.

9
Graphics / [SOLVED]Can't load PNG Textures?
« on: August 13, 2016, 07:34:49 am »
trying to load a somewhat big texture file:
http://opengameart.org/content/isometric-hero-and-heroine

I'm getting an error that says this:
Quote
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.

FIX:
*Apparently I just had to compress the textures.*

10
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?

11
The e-book costs €43.54 while the print+ebook costs €44.99. That's strange. I would expect e-book to be significantly cheaper. This book has everything that I would like to learn (well, except a chapter about SFML android development). I am going to buy it, but it's not exactly cheap.

I got the eBook for $5.00 :P

12
SFML game jam / Re: Wanna another? (early 2016 edition)
« on: January 20, 2016, 02:34:31 pm »
I would also like to give it a go and test my knowledge that I've accumulated over the past year in a game Jam.  I think the big problem for me would be the time frame the game Jam would take place because I work full time and also go to school full time. Crossing my fingers for a weekend Jam.

13
I just got the book today, skimmed threw it at work. Lots of content and some advance game programming techniques looking forward to going back and following it threw and studding the content.

I didn't like how the code was smushed together, being still a novice I like to see the pattern more clearly, but like I said there was lots of content and you can easily open up an example and see it more clearly.

I really liked how it walked you threw the system / pattern and keep adding to it. So like for the ECS you get a more clear understanding of how the ESC works and later shows you adding more components and systems adding even more.

Overall I'm really excited and I'll be sure to post more :D

14
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: December 30, 2015, 09:17:15 pm »
Awesome looking foreword to adding it to my collection :D

15
General / Re: SFML ingame console?
« on: December 30, 2015, 07:04:08 pm »
This is the console I created after help from the guys in IRC chat.
link: https://github.com/SanctionMan/SFML_Game/blob/master/SFML_Game/Console.cpp

It could use some cleanup but hey.. it did work.. I never did add commands like I wanted to :(

Pages: [1] 2 3 ... 5