SDL 2 Made Easy Tutorial 24 - Screen Scrolling

preview_player
Показать описание

Also follow me on social media :D

Steam ID: CodingMadeEasy

Feel free to download my apps as well!

Driving Frenzy
----------------------------

Рекомендации по теме
Комментарии
Автор

2021. You saved my life and my game. Thanks! From Brazil!

GameDevBoss
Автор

Thanks for these very clear, fast and helpful tutorials! :)

HugoIetsGaming
Автор

Thanks for your tutorial. I learnt a lot from you.

However, can you suggest me how to further systematically and efficiently learn SDL beyond your tutorial? Thanks

eson
Автор

Did you know that in SDL 2 you have access to SDL_RenderSetViewport wich crop the renderer automatically based on a SDL_Rect ?

sociamix
Автор

part at 5:33 really confuses me, i dont understand what you are doing here. What is cropRect, what does it do? is it explained in previous tutorials because i cant find it anywhere.

THVLPLYR
Автор

is there anyone still watching this, so once I write the code that make the camera centering correct (render player function), I have the feeling that it would mess up the player coordinate and it eventually did, I made an enemy follow the player, and after moving the player for a while, the enemy seems to go to another place further down right, which i think is the actual player pos. Pls help

fries
Автор

Not using SDL but this was really helpful thank you :)

oldgoldendonkey
Автор

Do you have any idea how I would go about zooming in? Similar to SFML's zoom function. I've tried everything, or all that I could find.

PrGamingInk
Автор

how would you do it if you wanted the camera closer
say SCREEN_HEIGHT / 2 and SCREEN_WIDTH / 2

breakerboy
Автор

Awesome man you just helped me solve one of the issues I had in a game I am making! Thank you so much! Is there a way to contact you for advice on an issue im having with it that isn't covered in your tutorials? Ive tried debugging, ive double checked triple checked and checked my code again and cant figure out why I can glitch my character past my border. I cant find any helpful answers by googling it ive tried. :/

lgbtqgacha
Автор

Hi, I have one question, I try to make enemies in my SDL game without vector they work, but if I make vector of enemies they don't appear, what can I do wrong?

milenamolska
Автор

I set up my camera to not fill the complete window, but instead be like a smaller screen inside the window with borders of 50 in all directions (To make room for GUI). Then when I want to crop my in world sprites when they go outside the camera bounds, they always starts to stretch instead of being cropped. However, cropping inside the camera bounds works perfectly fine. Is it possible to crop outside bounds? Or do I have to draw a Texture over it to hide the stretching?

RK-wrjr
Автор

Can you make a tutorial on Android and iOS on SDL please?

dfkjdfdfdfdfdfdfdf