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
31
General / Extend keyboard input keys
« on: February 11, 2012, 11:29:47 pm »
noo..not the Tilde key

tilde is ~ , unless I'm mistaken ? ill try again.


¬` that key

edit:

ACTUALLY...


Game.AddKeyBind(INPUTTYPE_KEYBOARD,"togglemenu console", sf::Keyboard::Tilde);


Just noticed: sf::Keyboard::Tilde ....is patched to @' on my keyboard.

every other key ive tried maps fine.

sf::Keyboard::Tilde .. shouldn't it be #~...Which is the key to the right.

32
General / Extend keyboard input keys
« on: February 11, 2012, 10:01:19 pm »
Hey everyone.

I would like to add some keys, namely the ` key

that's the little one next to the 1 key, `

As I would like it for my console bind, all my keys have a custom bind system, but that key I really miss having for console.

33
General / SFML only for games?
« on: February 10, 2012, 05:30:29 pm »
you can do 3D....but you might as well use a 3D orientated lib anyway?

ogre is just a renderer.

34
Graphics / Animated sprite in SFML
« on: February 05, 2012, 03:02:31 pm »
i inherited from drawables and transformables.

35
Graphics / Animated sprite in SFML
« on: February 03, 2012, 09:19:29 pm »
One texture is better

I think a tool which packs them, and prints our an xml with the frames. I read this into sections..

animations, and their frames. and single images.

that way I can pack all the anims for a "character" in to one image... Then with that image, I can load and split it into animations which have their set frames, .ie....run, jump, walk...etc....Then I can select which animation I want to run.

I didnt inherit, but I havent used it for more than loading and parsing, testing at the moment..


Hope this helps, though I am terrible at explaining.

Code: [Select]


<?xml version="1.0" encoding="utf-8" ?>
<sprite src="character.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>


36
General discussions / Extremely important question for Friday
« on: February 03, 2012, 06:58:57 pm »
Power !!

37
SFML projects / ColdStars (2.5D time based space strategy)
« on: January 29, 2012, 11:32:11 pm »
Very impressive and nice, map is a bit confusing but fantastic :)

38
SFML projects / SFGUI
« on: January 28, 2012, 09:31:18 pm »
This is very fun reading..there is software which will measure performances.


maybe it would be fun to make a test benchmark thingie for SFML aps of sorts...not sure how it would work right now..

fps, and external measuring memory and ..hm whatever else.

39
SFML projects / SFGUI
« on: January 28, 2012, 02:09:07 pm »
performance increase sounds fantastic ;)

thank you

40
SFML projects / SFGUI
« on: January 26, 2012, 06:25:12 pm »
I see,. they inherit the widget ones too...entry just has 1 extra

I think it would be great to pass the key , I'm finding it difficult to detect key presses ..the function fires fine, but then how can I poll the ready polled event?

41
SFML projects / SFGUI
« on: January 26, 2012, 12:07:11 pm »
Entry.onkeyPress?

this is nice, very immature right now though.  Does it not exist, or do I need to add it?

42
General discussions / New graphics API ready
« on: January 25, 2012, 08:23:09 pm »
Quote from: "Laurent"
Quote
test.GetGlobalBounds()

Does not take end white space in to account and trims it?

http://www.sfml-dev.org/forum/viewtopic.php?t=6672

Quote
and height seems to be wrong by half..

Really? Can you show a complete and minimal code that reproduces this problem?


eek, sorry, all tests show it does come back with the same height as shapes drawn next door.

Using gwen, it returns an odd height, but I can fix it be using the height of the font,and knowing no new lines will be used....but I cant get the correct width, because of spaces. + using a fixed font.

43
General discussions / New graphics API ready
« on: January 25, 2012, 07:04:23 pm »
test.GetGlobalBounds()

Does not take end white space in to account and trims it?

and height seems to be wrong by half..

AM I right that it should return width and height of displayed text?

44
Network / IpAddress::GetLocalAddress() returns 127.0.0.1
« on: January 23, 2012, 09:34:18 pm »
127.0.0.1 is local.

I have no used nore looked at the networking yet.

but I assume,...you will have to breadcast your a server over the network, or scan the network on a given port.


so what does
GetPublicAddress (Time timeout=Time::Zero)
    Get the computer's public address.
do?

45
System / Do something every 10 frames
« on: January 22, 2012, 11:41:15 pm »
how are you using it?

2.0?

surley count the frames between?

Pages: 1 2 [3] 4 5 6