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

Pages: [1]
1
General / Re: Box2D different angle slopes
« on: July 09, 2014, 10:20:00 am »
I've tried both already but it doesn't seem to work. :(

2
General / Box2D different angle slopes
« on: July 08, 2014, 11:46:21 pm »
Hi,
  I have created a Box2D based map for my platformer using ChainShape wich has different angle slopes (no more than 45°).
My problem is the slope collision with my player. The player' body has 2 fixtures, a rectangle and a circle bellow it. Whenever I move the player (the method doesn't matter the results are the same) and I stop on the middle of a slope I slowly glide down. I managed to temporarly fix that but the main reason for this post is the fact that whenever I leave a slope l I shoot out because I still have some impulse left from the previous movement. Same thing happens when I enter a downwards slope, or when I stop on a slope and I start moving again.

Entering / leaving the slope:
(The red lines are the desired movement, the black is the movement I have right now)


Start moving on a slope:
(The red lines are the desired movement, the black is the movement I have right now)


Could you please help me out with this problem? I don't mind if your answer is detailed either ;)
Thanks in advance!

3
SFML projects / Re: SFML Light System - Let There Be Light
« on: June 28, 2014, 03:41:09 pm »
Hi,
I'm trying to use LTBL for my platformer but I encountered a wierd problem. When I was testing LTBL it was fine, I managed to implement it with a view following my character around and it worked perfectly.
Altough when I tried to implement it to my main game where we have a really wide map, and an sf::View with zoom centered on the player I just can get the LightSystem's view to be the same size as the window and to follow the player's movement. I tried multiple ways to fix it but it is never at the correct position. (mostly the Y axis)
Could anyone help me out with this one?  :-\

4
General / Right angle triangle
« on: May 17, 2014, 02:20:59 pm »
Hello!

I was wondering if there is a way to check intersection between a right angle triangle and a point or an other shape.
(or even a rectangle with 45° rotation)

5
General / Handling tile-based slopes
« on: May 08, 2014, 11:46:47 am »
Hello!

As the title says I'd like to ask you guys if there is a "best" way to handle slopes in a 2d platformer (c++).
We are using an sf::RectangleShape as a collision box wich obviously moves with our character.
Mayble later we would like to implement different angle slopes but for the moment we are using 45° ones.
I have already managed to do half of it, but my problem comes when I try to jump while on a slope or when I try to jump on a slope in wich case I stop on the top of the tile rectangle and not the actual slope.

Thanks in advance for any help :)

6
General / Very high resolution scrolling background
« on: May 04, 2014, 05:26:39 pm »
Hello!

We are stuck in the 2d platformer game we are programming. We are using Tiled to create maps and RapidXML to implement them. It was working with simple placeholder tilesets and one layer.
Now however we are trying to implement a scrolling background since the map will be really wide (100 tile where each tile is 128x128).
We would like to know whats the best way to load it? The background picture we have is 2048x2048 pixels.

7
General / Re: SFML Spine
« on: April 23, 2014, 12:50:58 pm »
Thanks for the quick reply. I'd already checked the example you linked (it is a walking animation for a goblin and a 'spineboy') and using that example I managed to replace the character in our game with the same goblin (it's going to be the goblin until we manage to solve the collision detection etc).

So my concrete question is: I have the goblin displayed in the SFML window. I'd like to move it, let's say I hold the Right arrow key then it moves right with X speed utill the key is not released. Same with left and jumping.
I just don't know hot to change it's position.
It was easy using sf::Sprite, but I think it's type is sf::Drawable now. (SkeletonDrawable wich is an extension of sf::Drawable)

8
General / SFML Spine
« on: April 23, 2014, 12:01:25 pm »
Hello!
I'm fairly new to Spine, well and SFML itself and I was wondering if any of the more experienced programmers here could help me out.
So my problem is that I have no clue how to move characters/animations made with Spine. Nor am I able to figure out how could I get a hitbox for it. (we are making a sidescroller platformer game)
We already made a decent collision detection and some basic physics using sprites but we just can't do it with Spine. Please help us! :)

Pages: [1]
anything