C# Tutorial - Hit Test or collision detection with multiple objects in windows form

  Рет қаралды 19,236

Moo ICT

Moo ICT

Күн бұрын

Пікірлер: 24
@arkadiygroholskiy3775
@arkadiygroholskiy3775 3 жыл бұрын
So easy... You are the best!
@ЧУДОЮДО-к9х
@ЧУДОЮДО-к9х 2 жыл бұрын
Thank you from Kazakhstan
@mariumarif
@mariumarif 3 жыл бұрын
thank you :) it helped a lot.
@lordofkeyboards2066
@lordofkeyboards2066 3 жыл бұрын
:) you earned a sub
@30hi31
@30hi31 3 жыл бұрын
Just like we say in Mexico You are tremendo! thanks for the explain!.
@alizohaibibn
@alizohaibibn 2 жыл бұрын
Awesome Man!
@mooict
@mooict 2 жыл бұрын
Thanks Ali
@Metaconta
@Metaconta 8 ай бұрын
¿Por qué no haces que se mueva el cuadrado rojo en diagonal? Por ejemplo, pulsando las felcas arriba y derecha al mismo tiempo.
@generalbenekli2788
@generalbenekli2788 2 жыл бұрын
Thank you
@suheylbaykal6592
@suheylbaykal6592 3 жыл бұрын
I have watched this video many times to figure out what x stands for at 11:00. still a really useful video though
@mooict
@mooict 3 жыл бұрын
X is a temp variable inside the loop only. It will go through all of the picture boxes and we can use that temp variable to identify other picture boxes that the blue box will interact with. This way we won't need separate of statements for each one we can do all of the collision detection inside this loop.
@suheylbaykal6592
@suheylbaykal6592 3 жыл бұрын
@@mooict i figured it out and it all works, thanks for the tutorial!
@andreymanlapig8584
@andreymanlapig8584 3 жыл бұрын
how would i make the pic box stop moving when it hits an obj. i tried making its speed negative while intersecting so it would just look like its bouncing back but the problem is that it only reads 1 object not all picture boxes
@marekmanzel5803
@marekmanzel5803 3 жыл бұрын
i want to know too
@AquaDragon6629
@AquaDragon6629 3 жыл бұрын
I'm here for the exact same reason, but this seems like a bit of a copy past job of this article - minus the jumping. Because I was using the same one trying to learn collisions. www.mooict.com/c-tutorial-create-a-simple-platform-game-in-visual-studio/
@abezth7506
@abezth7506 Жыл бұрын
Hi, how do you check if it has collided with them two times and/or twice in a row, where only after one of those conditions it changes color?
@ramzes5710
@ramzes5710 3 жыл бұрын
I like your videos!!! You are awesome )
@mooict
@mooict 3 жыл бұрын
Thanks 😌
@mcprods763
@mcprods763 3 жыл бұрын
Hey @Moo ICT can u tell me how to make the picture boxes spawn in random places and disappear when I hit them?
@mooict
@mooict 3 жыл бұрын
Hi, I've done tutorial recently randomly spawning in a form and you can click to remove them from it. Tutorial is here - kzbin.info/www/bejne/aKunfJZ-qcR7o8k. Also I have completed another one where you can move a picture box around with the arrow keys, random objects are spawning in the form, you can collide or collect them. When player collides with other objects, objects are removed. It will be on KZbin in few days.
@mcprods763
@mcprods763 3 жыл бұрын
@@mooict thx bro it helped me a lot can you make a tutorial where you explain the restart function of your games pls?
@inayatkhan2061
@inayatkhan2061 4 жыл бұрын
how to make it stop hitting other object?
@mooict
@mooict 4 жыл бұрын
In what context? If you move the blue PictureBox away from the other ones it will stop the hit test, it will only trigger when the objects are overlapping
@AquaDragon6629
@AquaDragon6629 3 жыл бұрын
@@mooict I think what he means is - he wants the controllable block to stop when it collides with the other one, and then continue to move in the other direction. I'm here for the exact same reason, but this seems like a bit of a copy past job of this article - minus the jumping. Because I was using the same one trying to learn collisions. www.mooict.com/c-tutorial-create-a-simple-platform-game-in-visual-studio/
C# Tutorial - Make a flappy bird game in windows form
26:20
Moo ICT
Рет қаралды 310 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 713 М.
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 216 МЛН
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 42 МЛН
Events or UnityEvents?????????
15:43
Jason Weimann
Рет қаралды 104 М.
What is the Smallest Possible .EXE?
17:04
Inkbox
Рет қаралды 394 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 395 М.
The Ultimate Introduction to Scriptable Objects in Unity
20:45
How To Think Like A Programmer
1:00:07
Coding Tech
Рет қаралды 2 МЛН
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 216 МЛН