Touchscreen Controls - Intermediate Tutorial - GDevelop

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 147

  • @Faiqal_x1103
    @Faiqal_x1103 Рік тому +6

    Using the button extension and converting the button sprite into a clickable buttons that can easily be configured in the events works great too

  • @canyon0
    @canyon0 2 роки тому +5

    this is really straight forward and thats why i love the gdevelop community

  • @bluecritter
    @bluecritter 2 роки тому +7

    Very helpful, thanks! A video about different camera options would be nice - parallax backgrounds, using several cameras etc.

    • @GDevelopApp
      @GDevelopApp  2 роки тому +3

      A video on camera controls is a good idea, I'll add it to the list. 👍
      -Wesley

  • @comicincorporated3284
    @comicincorporated3284 2 роки тому +11

    When i take my finger off the button , the running animation still remains how do I change that

    • @1gadgamer23
      @1gadgamer23 Рік тому +1

      With key release

    • @alexkarivelil6350
      @alexkarivelil6350 10 місяців тому +2

      @@1gadgamer23plz detail I have the same problem

    • @DharmendraKushwaha-x3z
      @DharmendraKushwaha-x3z 6 місяців тому

      ​@@alexkarivelil6350 use Touch or mouse button is down (select left), in it's Subcondition now add cursor touch is on object

    • @criticaldreamnessuno47
      @criticaldreamnessuno47 6 місяців тому

      Devi mettere la condizione, avvia una volta

  • @JolieDamai
    @JolieDamai 2 роки тому +3

    Thank you so Much.
    But my Problem, when i install my game at my Phone and i Press one Time Left or right The player WIll walk and dont Stop

  • @weeeeeeew7275
    @weeeeeeew7275 Рік тому +3

    Thanks you very much.. This video saved me a lot of time and mental stability 😩

  • @epstopikpracticebangla
    @epstopikpracticebangla 2 роки тому +5

    so fantastic tutorial, we want more tutorials like this. And waiting for the full game creation video.

    • @Prajwal____
      @Prajwal____ 2 роки тому +1

      On the gdevelop wiki, I think you will find written tutorials there

    • @GDevelopApp
      @GDevelopApp  2 роки тому +1

      We have the asteroid game video, and a couple in the works. 👍
      And like bruhh said, the wiki has some written game tutorials you can check out.
      wiki.gdevelop.io/gdevelop5/tutorials
      -Wesley

    • @epstopikpracticebangla
      @epstopikpracticebangla 2 роки тому

      @@GDevelopApp ok, Thank you so much.

    • @epstopikpracticebangla
      @epstopikpracticebangla 2 роки тому

      @@Prajwal____ Thank you so much...

  • @Alex-nk8bw
    @Alex-nk8bw 2 роки тому +3

    These tutorials are so helpful! Thank you very much, and keep em coming. 🙂👍

  • @numgun
    @numgun 2 роки тому +1

    Just came in here to hit that Like button in advance, keep up the great work! 👍👍

  • @kylespevak6781
    @kylespevak6781 10 місяців тому +1

    I needed this

  • @greenhealth6819
    @greenhealth6819 2 роки тому +3

    I am also game developer i get alot of help with your Excellent Tetorial. I subcribe your channel, Keep it up and i watch your video daily.
    keep Growing that and i support you Too Much, Keep up Brooooo 😍😍😄

  • @muzan2367
    @muzan2367 2 роки тому +2

    This will be pretty useful for me. I got to learn something new.
    _never touched multitouch before, so yeah_

    • @GDevelopApp
      @GDevelopApp  2 роки тому +1

      I honestly hadn't before releasing that asteroids example. 😅
      All of my games were just build around a single touch, but multitouch is definitely needed for controls like in this video.
      -Wesley

  • @kxnnoir
    @kxnnoir 2 роки тому +3

    useful and entertaining as always!

  • @Roni3able
    @Roni3able Рік тому +1

    Hello, I love your tutorial Gdevelop are so helpful. but in your video collection I did not find a video about how to make multiple screen swipes in one scene. are there any plans for you to make this tutorial?

  • @kaijukaiju13
    @kaijukaiju13 2 роки тому +3

    Ok so when i try it on phone when i click something it stays activated until i click other control, if i add "trigger once" it dosent work at all. Can someone help me

    • @Im_Just_Saying_
      @Im_Just_Saying_ 2 роки тому

      It's just like that, mine does the same thing.. sucks

  • @Im_Just_Saying_
    @Im_Just_Saying_ 2 роки тому +2

    Please update the touch screen controls they're not accurate & my player gets stuck forcing me to double tap to move again

  • @eddielicea3740
    @eddielicea3740 2 роки тому +1

    I want to display idle animations after the touchscreen controls are no longed being pressed. How do I do this? TY for your help.

  • @the_shulha
    @the_shulha 2 роки тому +1

    Cool! But I have a problem. I need to touch a two buttons simultaneously. But I can't. A multitouch doesn't work. How I can solve it?

  • @greenhealth6819
    @greenhealth6819 2 роки тому +1

    Amazing tetorial i love that

  • @fihrilkamal7296
    @fihrilkamal7296 2 роки тому +1

    Amazing, I just learning Gdevelop now, have been using other engine, but can't stand subscription model, so I use this engine instead.

  • @prempalraghav4570
    @prempalraghav4570 2 роки тому +1

    🥺my question - how i make a sevral levels game without a big of game and how can i make many level in one scene using coding

  • @sohaokby7095
    @sohaokby7095 Рік тому +1

    your video is soo cool

  • @childhood.treasures9671
    @childhood.treasures9671 2 роки тому +1

    Thanks so much for your videos. They really helped me out. I have one issue: Is it possible to "make the touchscreen-buttons" make invisible when I play on via keyboard on the pc? When i play on mobile its of course important to see the touch-controls ... but when i play my game on the computer i dont want to see the touch-controls ... best Franz

    • @GDevelopApp
      @GDevelopApp  2 роки тому +1

      Hey! Yes, you can check to see if you're playing on a mobile device with a condition and then delete or hide the controls so they won't get in the way of someone playing on a desktop.
      The platformer example in engine works this way, it uses joystick controls instead of on screen buttons, but you can check out that example if you want to see how it works. 👍
      -Wesley

    • @childhood.treasures9671
      @childhood.treasures9671 2 роки тому +1

      @@GDevelopApp Hey, thanks so much for your answer!

  • @Felix-Pr
    @Felix-Pr 2 роки тому +2

    Is there a way to set a minimum view width so that when it's resized for a different screen, the camera zooms out enough to still show the width you wanted?

    • @GDevelopApp
      @GDevelopApp  2 роки тому +1

      If you did that you'd lose some of the top and bottom of your screen, so the easier thing to try is to set it to resize the height of the game if the width of your screen is the thing you want maintained. 🤔
      -Wesley

  • @baddev2720
    @baddev2720 2 роки тому +1

    Ah.. Finally the tutorial music is back and also Helper Wesley's Narration!

    • @GDevelopApp
      @GDevelopApp  2 роки тому +1

      The youtube audio library music is great. 🥳
      -Wesley

  • @planktonfun1
    @planktonfun1 2 роки тому +1

    Wish there's an already made behaviour for the controls

  • @casstreamer0
    @casstreamer0 Рік тому +1

    the button functions are continuous after one touch

    • @casstreamer0
      @casstreamer0 Рік тому +1

      if i touch jump button once,player character is jumping continuously like i am holding button

  • @childhood.treasures9671
    @childhood.treasures9671 2 роки тому +1

    Hey friend, is it possible to make a Gdevelop-Tutorial about a Speedrun-Timer? I want to insert a timer to my little jump n Run, to make the game thrilling for speedrunner ,,,, The timer should start at the beginning of a level and freeze at the end of the level ... best greets from austria ...

    • @GDevelopApp
      @GDevelopApp  Рік тому +1

      If you start a timer, you can use the expression builder to see the value of the timer and use a text object to display that value.
      You'll want to round up the value so you don't get a bunch past the decimal, but that's definitely possible. 👍
      -Wesley

  • @AvectaInteractive
    @AvectaInteractive 2 роки тому +4

    With the next GDevelop Jam being for mobile, I suspect quite a few peeps will be re-watching this tutorial 😁

    • @GDevelopApp
      @GDevelopApp  2 роки тому +2

      Maybe. But they should also check out the multitouch joystick extension too. Some good games could be made with that. 👀
      -Wesley

  • @yuvrajaggarwal3587
    @yuvrajaggarwal3587 2 роки тому +1

    How can we make a oxygen system??

  • @TechMalaya
    @TechMalaya 2 роки тому +1

    now i know how to control the game in android !

  • @colors308
    @colors308 2 роки тому

    how add stick control to walk ?
    please make video for it

  • @criticaldreamnessuno47
    @criticaldreamnessuno47 6 місяців тому

    Plaese i have a problem 🙏 if i hit and move some enemy on right the Will be blocked by a Wall,but if put the same Wall on left dont work... How i find the way for not go out enemy from scene?

  • @barelyapes123
    @barelyapes123 Рік тому +1

    Thank you very Helper ;)

  • @arthurarquibel6126
    @arthurarquibel6126 2 роки тому +1

    Can you make a tutorial for joystick on platformer ?
    i want to use the joystick to move left and right and flip the character depending on which side it moves.

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      We recently had to put the joystick video on hold, so I'm not sure when that video would come out, but I'll add that request in the to-do list. 🤔
      No promises about whether it'll be a good fit for the video. If it doesn't make it in to the video, I suggest you put some text on your screen and modify it to display the angle variable. Using that angle information you could decide how the character moves in your platformer game.
      -Wesley

  • @NIGHTSCRA
    @NIGHTSCRA 4 місяці тому +2

    Not working😢

  • @DLTVyt
    @DLTVyt 2 роки тому +2

    Awesome video as always! Would be cool to see a video on knockback damage in the future, kind of like Smash bros?

    • @GDevelopApp
      @GDevelopApp  2 роки тому +1

      That's a pretty specific type of game that would need that, so it probably won't be a standalone tutorial, it might be mixed in to a future game example.
      For my game, surtr, I used an object timer and when I struck an enemy it applied an instant force to the enemy for the duration of the timer. Not exactly elegant... using the physics engine would probably give you the best result, applying a physics force to the object you're striking in the direction the attack came from. 🤔
      -Wesley

    • @DLTVyt
      @DLTVyt 2 роки тому +2

      @@GDevelopApp Thanks! Just tested it out with a few changes and it worked wonderfully!

  • @stevewilliams7880
    @stevewilliams7880 2 роки тому +2

    A number of people have stated below (and I am having the same issue), that when the character moves (Using touch controls), that when the control is released the playable character continues moving, ie, if I press jump the character keeps jumping even when I stop pressing the jump button. How can you set the character to idle when no touch screen button is being pressed? Any help is much appreciated! :)

    • @GDevelopApp
      @GDevelopApp  Рік тому +1

      The virtual cursor is sitting behind the button. Use the action at the beginning of scene to disable mouse movement.
      ua-cam.com/video/58AT-cH5gLc/v-deo.html
      That should help. 👍
      -Wesley

    • @stevewilliams7880
      @stevewilliams7880 Рік тому +1

      @@GDevelopApp Thanks Wesley, you're a star!

  • @funtasticboy6762
    @funtasticboy6762 Рік тому +1

    excuse me, how can your preview zoom on the character while your map is small and only at the corner

    • @GDevelopApp
      @GDevelopApp  Рік тому

      Check out our camera video, each layer has it's own camera and can be zoomed/moved/adjusted independently. 👍
      -Wesley

  • @RManoFilms
    @RManoFilms Рік тому

    how do you make controls for the key board

  • @bigheadbrogames3757
    @bigheadbrogames3757 2 роки тому +1

    Thank you very much!

  • @thegamedev6778
    @thegamedev6778 2 роки тому +2

    how to use connect to broker server

  • @Prajwal____
    @Prajwal____ 2 роки тому +1

    Perfect!!

  • @hounslow4476
    @hounslow4476 Рік тому

    Hii sorry but i want to use controls as touch like i don't want visible buttons but i want it as my character to move where i click it on screen is that possible? If so please can you make a tutorial

  • @englo
    @englo Рік тому

    I am making a simple menu,
    But unable to rotate y(camera) axis by using touch.
    I use bottons to do so
    Tutorial for scrolling menu by touch sensor

  • @Drink-rl4wu
    @Drink-rl4wu 2 роки тому

    hi, Where i can fin a "Player 1" in my game? i try to modify tetris

  • @iamsick5204
    @iamsick5204 11 місяців тому

    im trying to figure out how to aim with the touch pad im sure its in one of these videos

  • @talyat9141
    @talyat9141 2 роки тому

    Hello! Can you make tutorial or just tell me in replies on how to set up mobile touch control, so whenever i press anywhere on screen, the sprite does an action?

  • @squanistthepixelartguy
    @squanistthepixelartguy Рік тому +1

    did helper wesley make gdevelop?

    • @GDevelopApp
      @GDevelopApp  Рік тому

      No. I just make games with it. Many awesome people were involved in creating it. 👍
      -Wesley

  • @VivRoyale1
    @VivRoyale1 11 місяців тому

    How do i go to event sheet in mobile??

  • @Nationdex
    @Nationdex 2 роки тому

    I made this and I followed all your instructions but it didn't work for some reason the character wasn't moving to the right and I checked the support server I couldn't get help

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      When checking to see why something isn't working, I'll usually break the event in to pieces.
      Check to see if each condition is working by putting it in an event with just it and an action to play a sound, if the sound doesn't play then you know the conditions are the problem.
      And then put each action in to an event by itself with no condition, if the player doesn't move then you know the actions are the problem.
      I hope that helps. Good luck with your game. 👍
      -Wesley

  • @FlintDLock
    @FlintDLock 2 роки тому +1

    hi i have a question. how can i always 0 the score even if i use subtract .. i want to stay to 0 dnt want to -1

    • @Prajwal____
      @Prajwal____ 2 роки тому +1

      You can put a condition on it that subtract only when your variable value is greter than or equal to 0

    • @FlintDLock
      @FlintDLock 2 роки тому +1

      @@Prajwal____ thnks bro.. got it.

  • @jacobchutes2331
    @jacobchutes2331 2 роки тому

    How do you disable/enable events using other events EX: having a button to spawn the player and prevent spawning multiple copies of the player, currently I change the animation to prevent it from doing so but it isn't very reliable for many other things throughout my game

    • @GDevelopApp
      @GDevelopApp  2 роки тому +2

      If you want something to trigger once while the conditions are true, add the condition "trigger once", or "at the beginning of scene" which will work the same way but only one time at the beginning of the scene.
      Hope that helps. 👍
      -Wesley

  • @DianaDrawss
    @DianaDrawss 6 місяців тому

    my jump button keeps disappearing whenever i do a preview. Is that a glitch or is it fixable? Edit: i got it to appear but its not doing anything

  • @danielsimmonds8469
    @danielsimmonds8469 9 місяців тому

    I've followed this video and my touch buttons seem to do nothing at all. What am I overlooking?

    • @GDevelopApp
      @GDevelopApp  9 місяців тому

      A lot of thongs might be going wrong, so it's hard to say in the UA-cam comments.
      I suggest you reach out and ask the Gdevelop community on discord, you can share screenshot and better explain what's going wrong there.
      -Wesley

  • @z0mbies_add1ct
    @z0mbies_add1ct Рік тому

    How do you add mobile controls to an rpg??

  • @instentproductions3180
    @instentproductions3180 2 роки тому +1

    iam making a exspansion of duck and this helps a lot

  • @JrKhan-nr7cj
    @JrKhan-nr7cj 2 роки тому +2

    Hi!
    I'm a software developer from India.
    I started using Gdevelop few months back, made couple of small games.
    My question to GDevelop crew + the audience: Should I use GDevelop to teach programming to kids?
    I will be conducting a small intro course for students (13+ year olds). And I think I should go for a high level, visual scripting language.
    I can use Scratch too, I know. But I think Scratch is meant for a more younger audience.
    With GDevelop, my students can actually build a (simple) mobile game.
    Has anyone taught Gdevelop to kids? Is this the right way to go?
    Thanks :)

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      We're a little biased, but I personally think it's a great tool for young people to learn logic with.
      I taught my youngest cousin(11 years old) the basic idea behind the event system and we had a lot of fun modifying an existing game. 👍
      -Wesley

    • @JrKhan-nr7cj
      @JrKhan-nr7cj 2 роки тому +1

      @@GDevelopApp :) thanks.

  • @arthurfariasxd7738
    @arthurfariasxd7738 Рік тому

    Hey, how can i make angle shooting with touchscreen ?

    • @GDevelopApp
      @GDevelopApp  Рік тому

      There's a mobiel version of the game example "conviction of gundude that uses mobile joysticks.
      Hope that helps. 👍
      -Wesley

  • @animerov286
    @animerov286 2 роки тому

    I tried your code and did the same setup but when I put my cursor over the buttons, nothing happened, I thought it was my pc so I built it for android anyway, and when I touch the buttons nothing happens....

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      Does the player object have the platformer behavior?
      This video builds on the platformer video example made earlier on the channel.
      -Wesley

  • @wafflewirdoGs
    @wafflewirdoGs Рік тому

    Its good but my game has multiple animations for the character as in different evolutions per say so i can get it to work just not my animations

  • @Mikaki160
    @Mikaki160 Рік тому

    how to make the joystick work would be a good tutorial

  • @GAMEOVER-dq1wt
    @GAMEOVER-dq1wt 2 роки тому +1

    Can you make a Tutorial for a AI enemy
    how to program it so that it attacks us in several ways. Thank you very much if you do
    that tutorial.

    • @GDevelopApp
      @GDevelopApp  2 роки тому +2

      We have a video on the list to eventually cover something similar to this, but we'll also have game examples with simple enemies in the future as well. 👍
      -Wesley

  • @radeationguy1624
    @radeationguy1624 2 роки тому

    i need help because when i press them in buttons the animation doesnt work

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      Is the player moving though?
      If the player is moving, but the animation isn't playing, try checking out the animation tutorial video, that might help you figure out what part isn't working. 👍
      -Wesley

    • @radeationguy1624
      @radeationguy1624 2 роки тому

      @@GDevelopApp thanks i just need to make a seperate animation script on the buttons

  • @firmansah1132
    @firmansah1132 Рік тому

    why do my arrows fall down?

  • @Mik3l_42
    @Mik3l_42 Рік тому

    While i did everything you said,when i tap or hold it with my fingers nothing happens.

    • @GDevelopApp
      @GDevelopApp  Рік тому

      Does your character have the platformer behavior? 🤔
      This video builds off of the in depth platformer behavior video.
      -Wesley

  • @Prajwal____
    @Prajwal____ 2 роки тому +1

    I want to add to it that since the cursor is not moving, it will be always at 0,0 so if you have something there, if will get touched

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      Definitely a good thing to watch out for!
      -Wesley

  • @ALTAÏR3-z4e
    @ALTAÏR3-z4e Рік тому

    my player falls down when i check my game on mobile :/

    • @GDevelopApp
      @GDevelopApp  Рік тому

      If you're using the platformer behavior, you need to give the objects they're standing on the "platform" behavior. 👍
      -Wesley

  • @jordanoes6158
    @jordanoes6158 Рік тому +1

    Everything works! the only problem im having is the fact that my character doesnt flip anymore, it does flip on pc but not mobile:(

    • @GDevelopApp
      @GDevelopApp  Рік тому

      For quick trouble shooting, I put "play a sound" action in the event that's not working. If the sound plays, then the conditions work and there's something wrong with your actions. If the sound doesn't play, then there's something wrong with your conditions.
      Hope that helps. 👍
      -Wesley

    • @Faiqal_x1103
      @Faiqal_x1103 Рік тому

      @@GDevelopApp wow thats an interesting method to troubleshooting an error! To answer OP's problem though, i had the same problem and what i did is just add a flip action to the mobile control events the same way we did for keyboard controls

  • @extrudeur
    @extrudeur 2 роки тому +1

    Bonjour un tutoriel sur la physique motor avec gestion des calques et masques etc...
    Merci et surtout mille fois bravos pour tous les tutoriels que vous faîtes salutations de FRANCE.

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      We will definitely be doing a video on the physics behavior in a future "in depth" video. 👍
      Thank you, and hello to you in Paris from Canada. 👋
      -Wesley

  • @jesusloveskb
    @jesusloveskb 2 роки тому +1

    Tip for everyone if the game isn't picking up your inputs:
    If you have a "touch or ____ mouse button is down" condition, it won't work.
    Speaking from experience

  • @disguisedpuppy
    @disguisedpuppy 2 роки тому +2

    0:11 never gonna give you up never gonna let you down

  • @samojster
    @samojster 5 місяців тому

    how to use joystick

    • @GDevelopApp
      @GDevelopApp  5 місяців тому +1

      Check out our other video on mobile controls, it shows how to use joysticks and other mobile type controls.
      -Wesley

  • @qusaialbredi
    @qusaialbredi 2 роки тому

    thanks

  • @Flomista9722
    @Flomista9722 2 роки тому

    A p2p tutorial could be nice
    Thanks !

  • @leolinbiju1234
    @leolinbiju1234 Рік тому

    i need to know how to control with keyboard

    • @GDevelopApp
      @GDevelopApp  Рік тому

      For the platformer behavior? It is controlled by default with the arrow keys and space bar, but you can add your own controls by using events with the "key pressed" condition and "simulate control" actions.
      Hope that helps. 👍
      -Wesley

    • @leolinbiju1234
      @leolinbiju1234 10 місяців тому +1

      @@GDevelopApp thanks

  • @Seall0vrr
    @Seall0vrr 2 роки тому +1

    tbh he kinda sounds like zuko :0

  • @moatzali2114
    @moatzali2114 2 роки тому +1

    Why ?

    • @GDevelopApp
      @GDevelopApp  2 роки тому +3

      Why not?

    • @moatzali2114
      @moatzali2114 2 роки тому +2

      @@GDevelopApp no I know I mean why so early 😂

    • @Mattxoxo623
      @Mattxoxo623 2 роки тому +2

      @@GDevelopApp lol, what an answer !

  • @miusoft
    @miusoft 2 роки тому +1

    👍👍👍

  • @shahmeer-v4t
    @shahmeer-v4t 22 дні тому

    i no understand

  • @z0mbies_add1ct
    @z0mbies_add1ct Рік тому

    This didn't work

    • @GDevelopApp
      @GDevelopApp  Рік тому

      What didn't work?
      Does your character have the platformer behavior? This video builds off of the in depth platformer behavior video.
      -Wesley

    • @z0mbies_add1ct
      @z0mbies_add1ct Рік тому

      @@GDevelopApp I don't know if I had the behaviour or not but my project closed so nothing is left

  • @thebeedev1397
    @thebeedev1397 2 роки тому +1

    the only thing i have to say is 🎺

  • @Slime-Dev
    @Slime-Dev Рік тому

    سييييييييييييي

  • @wongaiintelligencestudio
    @wongaiintelligencestudio 2 роки тому

    Basketball Game

  • @Stop_looking_at_my_username
    @Stop_looking_at_my_username 8 місяців тому

    ....... i hate this.....

  • @sirgerito
    @sirgerito Рік тому

    When ever I take my finger off the screen sometimes it registers the buttons still being pressed how do I fix this

    • @GDevelopApp
      @GDevelopApp  Рік тому

      It might be that the virtual cursor is sitting behind the button after you take your finger off the screen. Try to use the action at the beginning of scene to disable mouse movement.
      ua-cam.com/video/58AT-cH5gLc/v-deo.html
      That should help. 👍
      -Wesley