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

Pages: [1]
1
General / Re: player.move() sends player into wal
« on: June 01, 2018, 05:20:23 pm »
Hi

I believe I have done something similar to this before, but it caused the player to spaz out because it is constantly moving into the wall and then moving to the outside of the wall.

2
General / Re: player.move() sends player into wal
« on: May 30, 2018, 03:43:18 pm »
Hi

Thanks for the reply.

The buffer I mentioned previously acts as the next step. the problem is that the buffer is skipped because the player moves 4 pixels every time the move button is pressed. If I make the buffer any bigger, the buffer prevents the character from being flush with the wall. If I slow the movement to 1 pixel, the character is too slow.

I think that I could solve this problem by moving 4 pixels every button press, but interrupt this movement if the character's buffer meets a wall before the movement stops. The problem is my implementation of this does not work. Do you have any ideas on how I could implement this?

Thanks!

3
General / player.move() sends player into wal
« on: May 30, 2018, 01:50:58 pm »
Hi.

I am currently making a c++ game. I have the movement down and did have the collisions sorted until I realized that they only worked because they were positioned at a multiple of the speed. When I re-positioned the blocks, my character was not flush with the wall because I have buffers around the outside of the character.

When I tried to fix the movement, I tried to make it so that it moves 1 pixel at a time and when a collision occurs, the character will cancel the rest of the movement.

Does anyone have any pointers as to how to fix this? Thanks for any help.

4
Window / Re: How can I pause a youtube video or game with sfml?
« on: February 21, 2018, 06:23:12 pm »
p.s That was quick!

5
Window / Re: How can I pause a youtube video or game with sfml?
« on: February 21, 2018, 06:22:43 pm »
Ah well, thanks anyway.

6
Window / How can I pause a youtube video or game with sfml?
« on: February 21, 2018, 06:09:55 pm »
Hi

I have made a program that reacts to player input and resets a predetermined timer. If you do not click, the timer will run out and a screen will pop up.

I would like to know if it is possible to send some kind of keyboard input to the browser using SFML

Thanks for any help.

Pages: [1]