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

Pages: [1] 2 3 ... 6
1
General / Key press.
« on: February 12, 2012, 10:08:59 pm »
I don't get it..

2
General / Key press.
« on: February 12, 2012, 08:37:00 pm »
Could you please be more specific as to HOW i could implement this?

3
General / Key press.
« on: February 11, 2012, 09:55:21 pm »
How do you check for a SINGLE key press? So you want to check if spacebar has been PRESSED and then RELEASED. So checking for one tap.

4
Window / Resizing window.
« on: February 05, 2012, 03:17:18 am »
But doesn't that just move the view around? How does that solve the problem?

5
General / Distributing SFML games on other websites.
« on: February 03, 2012, 05:36:08 pm »
Earlier someone mentioned i would have to make a windows installer because when i sent the game files to someone, they needed some extra dlls. First, why did this happen? Second, if i make a windows installer, how would it know to install those dlls and how would it install them? Third, where could i learn this?

6
General / Distributing SFML games on other websites.
« on: January 29, 2012, 04:18:53 pm »
Ok guys listen. The only thing i care about is that they can't CHANGE my ART assets and then play in MY SPECIFIC game with assets that they changed. For example, lets say im desiging a space shooter and i have bullets. Well the bullets are going to be sprites. So i made collision detection that if the bullets hit the enemy they die. Now listen. All they have to do is go into the directory of my game, look for the bullet sprite, change it so that it fills the entire screen or watever, and then when they shoot all enemies die because of the collision detection. I want my ART ASSETS LOCKED. You guys are thinking about copyright and people stealing my work. I just don't want my game to be played differently then its supposed to. I want to make sure it plays the way its supposed to with the assets that i created. Like, earlier i told you that in this game i had downloaded, they had the maps and models in dll files so there was nothing i could do to change the maps or models. I want to do something like that. In other games i've seen files with changed extentions.

7
General / Mouse problem.
« on: January 29, 2012, 02:21:05 am »
Code: [Select]
sprite.SetPosition(mouse.GetPosition(Window).x, mouse.GetPosition(Window).y);

Wow that worked! Umm the only thing is that i dont really know what happened in terms of the actual code. I know what happened in reality but with the code i dont understand. The GetPosition() function takes a parameter? I didn't know that. How does that work?

8
General / Mouse problem.
« on: January 28, 2012, 10:17:31 pm »
Code: [Select]

#include <SFML/Graphics.hpp>
#include <iostream>

using namespace std;





int main()
{

    sf::VideoMode vmode(800,600,32);
    sf::RenderWindow Window(vmode, "Pong");

    sf::Texture tex;
    tex.LoadFromFile("Paddle.png");

    sf::Sprite sprite;
    sprite.SetTexture(tex);
    sf::Mouse mouse;





    while(Window.IsOpened())
    {
        sf::Event event;

        while(Window.PollEvent(event))
        {
            if(event.Type == sf::Event::Closed || sf::Keyboard::IsKeyPressed(sf::Keyboard::Escape))
            {
              Window.Close();

            }
        }

        Window.Clear(sf::Color::Cyan);


        sprite.SetPosition(mouse.GetPosition().x,mouse.GetPosition().y);


        Window.Draw(sprite);


        Window.Display();


    }

9
General / Mouse problem.
« on: January 28, 2012, 08:58:54 pm »
I have no idea what 90% of those functions you mentioned do.. Can you please be more clear and thanks!

10
General / Distributing SFML games on other websites.
« on: January 28, 2012, 08:50:51 pm »
Okay then i wont worry about encryption.. but about what texus said earlier that you can have resource inside .exe, how do you do that? And also, is there a way in SFML, that i can change the directory of my assets? So like for example, in my game folder i will have a subfolder named "Sprites" and then put all my sprites in there. The problem is that when i used sf::Texture::LoadFromFile it only looks in the game directory, not the sub folders.

11
General / Mouse problem.
« on: January 28, 2012, 05:12:44 am »
So now i want to get mouse into my games. Earlier i was just using the keyboard but now I need to learn how to get mouse input and stuff. Well as a test, i just tried to set the position of a sprite the same as the position of the mouse pointer. So, i used sf::Sprite::SetPosition() and then gave the parameters of the function the mouse x coordinate and y coordinate. The problem was, the sprite wasnt at the point of the mouse. Like when i moved the mouse the sprite moved so it was working, but at the wrong coordinates. So if my mouse pointer was at 0,0 for example, then the sprite would be wayy below to the right or something. Please help and thanks so much!

12
General / Distributing SFML games on other websites.
« on: January 28, 2012, 01:57:22 am »
How do i encrypt my files?

13
SFML website / About the tutorials.
« on: January 28, 2012, 01:15:31 am »
Well on github is there any SFML tutorials?

14
SFML website / About the tutorials.
« on: January 27, 2012, 09:46:33 pm »
When are the SFML 2.0 tutorials going to get uploaded? I keep checking but it still only has one tutorial, which is compiling with CMake or something. And also, im COMPLETELY confused about the github thing. How does it work? I want some tutorials but when i went to the website, i didnt know anything about how to get to the tutorials. Thanks in advance!

15
General / Distributing SFML games on other websites.
« on: January 23, 2012, 12:50:58 am »
Ok.. I downloaded this game 2D and for some reason it only has a music file and an exe file. Where did all the dlls, assets go?? How come only the executable is needed in some games that you download and it runs fine? Also, if they change the artwork then the game will actually run with that specific picture. All they have to do is open with paint or photoshop or something and then they can modify it and play with that. I know this because i did it myself..

Pages: [1] 2 3 ... 6
anything