Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

allow you to jump by button

*sigh* that is not how you turn on a switch. you turn on a switch through event commands, on the first page of event commands, the button Control Switches
 
Ok, AJ, I couldn't get yours to work, I don't know why, but I did this instead and it seems to work. Do you see any flaws with my thinking?
@>Control Variables[003:Player X on Map] = Player's Map X
@>Control Variables[002:Player Y on Map] = Player's Map Y
@>Conditional Branch: Variable [002:Player Y on Map] == 8
@>Conditional Branch: Variable [003:Player X on Map] >= 4
@>Conditional Branch: Variable [003:Player X on Map] <= 15
@>Control Switches: [006] = Off
@>
: Else
@>Control Switches: [006] = On
@>
Branch End
@>
: Else
@>Control Switches: [006] = On
@>
Branch End
@>
: Else
@>Control Switches: [006] = On
@>
Branch End
@>
 

A J

Member

Rajaat99 yeah it will works fine but the thing is that this way it will not allow the player to jump from left to right or right to left when he is near the jail bars
 
Edit: nevermind, I worked it out. turns out you can't have another Parallel process with "set move route"...

(Sorry for posting on an old post)
I got the jumping to work just fine, but when I enter my village map, the jumping stops working! I tried putting the jump switch=on event on the map, but it doesn't work!
hm.. Help pwease?
 

GNB

Member

hrmm what am I doing wrong?

I have done the common event and it is triggered by a parallel process. and it should start when my condition switch "jump on" is on , right?.

And my autorun event just have two commands: Switch jump on = ON and then erase event, so it dont loop.

Sorry if it is hard to understand but i cant take screenshoots on this computer.

/ G'n'B ;)
 
A J":1c5cesly said:
ok first of all set a common event where ever you like

then set
@>Conditional Branch: The A button is being pressed # it can be any button.

then insert under it
@>Conditional Branch: Player is facing Down
@>Set Move Route: Player (Ignore If Can't Move)
          :$> Jump: -0,+2
@>

then insert under Else
@>Conditional Branch: Player is facing Up
@>Set Move Route: Player (Ignore If Can't Move)
          :$> Jump: +0.-2
@>

next insert under Else
@>Conditional Branch: Player is facing Left
@>Set Move Route: Player (Ignore If Can't Move)
          :$> Jump: -2.+0
@>

You know what to do next insert under Else
@>Conditional Branch: Player is facing Right
@>Set Move Route: Player (Ignore If Can't Move)
          :$> Jump: +2.+0
@>



then set at the end

@Wait For Move's Completion


then you'll end up having an event like this

@>Conditional Branch: The A button is being pressed
  @>Conditional Branch: Player is facing Down
     @>Set Move Route: Player (Ignore If Can't Move)
      :          :$> Jump: -0,+2
     @>
   :Else
     @>Conditional Branch: Player is facing Up
       @>Set Move Route: Player (Ignore If Can't Move)
        :          :$> Jump: +0.-2
        @>
       :Else
         @>Conditional Branch: Player is facing Left
           @>Set Move Route: Player (Ignore If Can't Move)
            :        :$> Jump: -2.+0
           @>
           :Else
            @>Conditional Branch: Player is facing Right
              @>Set Move Route: Player (Ignore If Can't Move)
               :        :$> Jump: +2.+0
              @>
            : Branch End
           @>
         : Branch End
        @>
       : Branch End
      @>
    : Else
   @>
    : Branch End
   @>

@Wait For Move's Completion
@>



then name it what ever you want and set the Trigger: Parallel
and select a condition switch

then set an auto event on the map to switch to the condition switch you've selected then when you play it just press the Z button or what ever you selected and the actor will jump.

Edit: Ok like everyone was saying use the command "erase event" or a self switch to stop the process of the map event
Thx for that A J this will help in my new game im workin on for my jump slash move
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top