Announcement

Collapse
No announcement yet.

how to set up speed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to set up speed

    i want to set up speed for walking and running
    i have set up action maping in project setting
    but how to appeal to this function

    i need entering in running mode by pressing R, and back to walking by pressing it second time

    i am in top down mode

    #2
    Here is how it works: https://www.youtube.com/watch?v=6rTx2MH-7qA (you can do it without the timeline)

    Comment


      #3
      it does not work for me, i did it even drop for drop identicaly like in the tut but it does not even catch the pressed key whyyyy
      Last edited by PaYo; 12-17-2014, 10:01 AM.

      Comment


        #4
        Either disable "block input" in your player controller or do the running part in your player controller:

        Click image for larger version

Name:	run.jpg
Views:	1
Size:	219.6 KB
ID:	1064224

        Comment


          #5
          1. ok thx, now how can i make running by pressing key R and still runing while released key, until i click it again

          if (R=pressed())
          {
          run=1
          }
          else
          {
          run=0
          }
          will branch stands as IF category ?
          Last edited by PaYo; 12-17-2014, 10:54 AM.

          Comment


            #6
            maybe like that if speed == 300 then pressed key make it to the 600 if speed is 600 then change it to the 300

            Comment


              #7
              ok i have done it, like that
              Click image for larger version

Name:	Bez tytułu.png
Views:	1
Size:	208.6 KB
ID:	1064228

              Comment

              Working...
              X