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

Pages: 1 [2] 3
16
DotNet / Question: How to setup icon for SFML window
« on: March 17, 2009, 10:51:57 pm »
This is what my status bar looks like


This is the icon i am trying to load

17
DotNet / Question: How to setup icon for SFML window
« on: March 17, 2009, 03:00:19 am »
As the question stated, how do i do it. When ever i try to setup the icon, it always comes out wierd. Below is my code that i use

Code: [Select]

System.Drawing.Icon icon = new System.Drawing.Icon("Game.ico");
                MemoryStream ms = new MemoryStream();
                icon.Save(ms);
                byte[] data = ms.ToArray();
                Render.SetIcon((uint)icon.Width, (uint)icon.Height, data);
                icon.Dispose();
                ms.Close();

18
DotNet / String2D#GetRect Crashes when called
« on: March 15, 2009, 11:20:53 pm »
I think i would just wait for the version 1.5 to be posted ^_^

19
DotNet / String2D#GetRect Crashes when called
« on: March 15, 2009, 10:45:13 pm »
I did download the DotNet SVN version. And compile the C# code to get the .net dll. But it still did not work and gave me the same error message.

20
DotNet / String2D#GetRect Crashes when called
« on: March 15, 2009, 08:05:37 pm »
I download it and tried it and still does not work. It gives me the same error message.

Is something wrong with the way i am calling it?

Code: [Select]


using G = SFML.Graphics;I am aliasing the namespace as G

text = new G.String2D("God is Good");
G.FloatRect rect = text.GetRect();

21
DotNet / String2D#GetRect Crashes when called
« on: March 15, 2009, 03:34:33 am »
Just as the title states. When ever GetRect is called on String2D object it crashes and gives the below error.


Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Thanks for the help.

22
DotNet / RenderWindow#EnableKeyRepeat does nothing
« on: March 06, 2009, 05:19:24 am »
Thanks for the suggestion. It worked ^_^

23
DotNet / RenderWindow#EnableKeyRepeat does nothing
« on: March 06, 2009, 01:31:14 am »
What do you mean by "EnableKeyRepeat is for controlling the behaviour of KeyPressed events."

24
DotNet / RenderWindow#EnableKeyRepeat does nothing
« on: March 05, 2009, 11:09:49 pm »
I am currenting using windowxp home with sfml 1.4.

I did something similar to below

Code: [Select]
//Create Render Window
MyRenderWindow.EnableKeyRepeat(false);
//Start Render Loop
while(true){
MyRenderWindow..DispatchEvents();
MyRenderWindow.Clear();
.....
if(MyRenderWindow.Input.IsKeyDown(KeyCode.A)){
   //To something
}
MyRenderWindow.Display();
}


I guess want i am really looking for is IsKeyPressed because it seem like KeyDown would execute as long as the key is down. I thought that by setting KeyRepeat to false, that it only execute my code for each press rather than for the period of time which the key is down.

25
DotNet / RenderWindow#EnableKeyRepeat does nothing
« on: March 05, 2009, 01:48:42 am »
When i tried disable key repeat, it does nothing. It keeps repeating key when i hold it down. Is there a solution to fix this problem? Thanks for the help

26
DotNet / Image#CreateMaskFromColor does not seem to work
« on: February 06, 2009, 06:00:52 am »
I have tried using CreateMaskFromColor on an Image but it never makes the color that i selected to be transparent.

Thanks for the help.

27
DotNet / SDK does not work on vista
« on: January 28, 2009, 02:36:45 am »
As the topic states, the .net version of sfml since not work on the vista system. It always gives an error message when loading the graphics dll at RenderWindow. Thanks for the help

28
DotNet / Image#Pixels Property does not work
« on: January 26, 2009, 12:16:13 am »
After much research i figure out why it does not work. The reason was because the Image.FromStream method require a stream that contain (png, jpg, bmp file stream). My byte array did not work because it does not contain the necessary headers to be recognize as a valid image data. Thanks for the help.

29
DotNet / Image#Pixels Property does not work
« on: January 25, 2009, 08:57:35 pm »
I did the following:

Code: [Select]
Image img = new Image.new("file.png");
byte[] data = img.Pixels;
Stream s = new MemoryStream(data);
System.Drawing.Image dotNetImage = System.Drawing.Image.FromStream(s);// It crashes  stating  paramater is not valid
img.Dispose();
s.Close();

30
DotNet / Image#Pixels Property does not work
« on: January 25, 2009, 08:26:50 pm »
I tried the opengl sample and it works. But i am kinda of confused why it works because any time i try to use the image#pixels to create a .net image/bitmap it fails all the time.

Pages: 1 [2] 3
anything