I have a platformer game where barriers move from right to left until off the screen. The player object which you can control moves from right to left too unless you are moving the player right to prevent from going off the screen. Whenever my player object lands on the barriers, it's speed left is doubled so that he slides off the barrier then lands on the 'ground' and returns to a normal speed going left.
Here is my event's for further verification as well as a crappy gif.
My question is, how do I check if the player object is on the barrier object, which each time it is generated is at a different height, so that I can set the object speed to the the right to negate the double speed caused by the barrier.
As well, if you have any suggestions for better doing things in how I update the player movement, don't
hesitate to let me know.
Click the link, the screenshot is really big, forgot to resize it.