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

Pages: 1 2 3 [4] 5 6
46
Graphics / Is it possible to draw FloatRects to the screen?
« on: January 22, 2012, 07:45:03 pm »
sf::RectangleShape
?

47
General / Change mouse cursor?
« on: January 21, 2012, 06:58:08 pm »
hehe thank you

a few reasons really:
...it means I have to pack the images...I may release what I'm working on to show.
..I'm also near blind so not a fan of images :P
...I want 5 different cursors :(

however thanx, will go down image rout anyway

48
General / Change mouse cursor?
« on: January 21, 2012, 04:49:44 pm »
Quote from: "Walker"
I'm not really sure what people have against just drawing a sprite and hiding the OS cursor.


I may go down this route, just means I have to include the sprites and find images:P

I suck at images :(

49
General / Change mouse cursor?
« on: January 21, 2012, 02:22:58 pm »
Thanx v.much....thought as much.

bit annoying actually :(

well I may go down picture route :(..

thank you

50
General / Change mouse cursor?
« on: January 21, 2012, 03:19:24 am »
Hello!

is it possible through sfml to change the mouse cursor? Ive no idea how standard this is

51
Feature requests / sf::XML
« on: January 20, 2012, 07:40:57 pm »
sounds nice, using tinyxml but error handling doesnt exist..a single xml file error and it crashes everything...

I might have to take a looK! Thank you for suggestion..anymore?

using it for loading Tild maps and animation files

52
General / Trouble getting rid of console in windows
« on: January 19, 2012, 10:51:01 pm »
start an empty project.  not a console project.

VC2010, 2008?

53
Graphics / Loop problems with animation (AniSprite)
« on: January 18, 2012, 06:27:20 pm »
I have in dev my animation system,
Which is totally dynamic.

Which loads all animation sets from an xml file like this

Code: [Select]


<?xml version="1.0" encoding="utf-8" ?>
<sprite src="spritesheet.png">
<animnation name="down"  loop="true">
<frame name="down_1" x ="0" y="0" w="16" h="32"/>
<frame name="down_2" x ="17" y="0" w="16" h="32"/>
<frame name="down_3" x ="34" y="0" w="16" h="32"/>
<frame name="down_4" x ="51" y="0" w="16" h="32"/>
</animnation>
<animnation name="left" loop="true">
<frame name="left_1" x ="68" y="0" w="16" h="32"/>
<frame name="left_2" x ="85" y="0" w="16" h="32"/>
<frame name="left_3" x ="0" y="33" w="16" h="32"/>
<frame name="left_4" x ="17" y="33" w="16" h="32"/>
</animnation>
<animnation name="right" loop="true">
<frame name="right_1" x ="0" y="66" w="16" h="32"/>
<frame name="right_2" x ="34" y="33" w="16" h="32"/>
<frame name="right_3" x ="17" y="66" w="16" h="32"/>
<frame name="right_4" x ="51" y="33" w="16" h="32"/>
</animnation>
<animnation name="up" loop="true">
<frame name="up_1" x ="34" y="66" w="16" h="32"/>
<frame name="up_2" x ="68" y="33" w="16" h="32"/>
<frame name="up_3" x ="51" y="66" w="16" h="32"/>
<frame name="up_4" x ="85" y="33" w="16" h="32"/>
</animnation>
<image name="head" x ="68" y="66" w="16" h="16"/>
</sprite>



Then ive written an exporter for a sprite packer which creates the file. All packed up in one texture.

I can then access each animation sequence as follows:

in my player class
Quote
   g_spritesheet playerSheet;
   

The player/object class will eventually turn into a base ent class which controls the sprite class.

then I have


Quote
   player.loadPlayer("playerimage");
   player.setAnim("right");
   player.setSpeed(4);


If anyone is really having a lot of trouble with the above, and are interested I might try and move it out so I can post it.

right now, trouble is...using tinyxml I find if any error occurs it will just crash (ie, an xml file is invalid)
Also I load my xml files and images from a resource manager which streams them from pack files..I would need to remove this back to loadfrom file (not that hard)...but only if someone is interested.
Right now I am working on a system of variables, so I can set speed multipliers. which you will have to either have static or in your own variable system..ini or xml or whatever..

54
Network / Enet and SFML Networking
« on: January 15, 2012, 01:45:59 pm »
V.cool.

The reason I was going to just use SFML network, is because  of packet.

However....What are the advantages of eNet over just SFML networking?
eNet doesnt do tooo much

mainly it would be speed and "capableness" of dealing with large data.

so...can you send a SFML packet over eNet?
I never played with eNet yet.

what about on send event for encryption  etc>?

55
Graphics / How can I use OpenGL commands for drawing on RenderTexture?
« on: January 14, 2012, 07:29:44 pm »
I think its more for drawing as you would normally with opengl. Then textures are for ..texture manipulation at a higher level.

56
SFML projects / SFGUI
« on: January 12, 2012, 12:33:00 am »
Found it!

Thanx, I rechecked the options and it was exporting it!....removed that and works, thanx for support and patience..........finally can move on...

57
SFML projects / SFGUI
« on: January 11, 2012, 11:41:04 pm »
no sorry that was me messing about.

it was exactly the same and did not work, I rewrote that and some other lines before posting but just missed that as it compiled ok.


with it fixed..and exactly the same as the tutorial.........it does not "connect" still.

Edit: just double checked.....nope, not working, if I have time ill even video it, but its doing nothing....then copied tutorial code, copy paste...nothing.

maybe ill try redoing the .lib :S

58
SFML projects / SFGUI
« on: January 10, 2012, 11:31:37 pm »
http://www.2shared.com/file/SFDcoOyd/sftest.html

think that's all, sorrya bout dlls, has static linking :\

59
SFML projects / SFGUI
« on: January 10, 2012, 09:12:48 pm »
Quote from: "Tank"
Really strange. We're using fast delegates which were made possible using a LOT of hacks for various compilers, however there weren't issues with MSVC10 yet.

Just to make sure: Would you  mind uploading your full project somewhere so we can check?


can't reproduce?

no worries, though it happens with the tutorial code, just 1 cpp file.... ill upload once ive written my chem up.

the code however is exactly that of the new tutorial. ....

also the lib compiled with no problems..


....also it is Visual Studio 2008

60
SFML projects / SFGUI
« on: January 08, 2012, 11:50:01 pm »
Quote from: "Tank"
Could you please do a 'cout' in the handler to see if it's really not called?


already tried, plus breakpoint, nope :\

Pages: 1 2 3 [4] 5 6
anything