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.

___________________________________________________________

-cough- make a variable called elevation. Everytime you go up a slope, add a variable, if you go down a slope, subtract a negative. Make the bridge out of all events with two pages on the first page make the conditions..Eh sorry, I'm pretty sure that there is a tut by Kraft by this but i have to go, once i get back i will finish it if you havent gotten it to work
 
Please do not create a new thread about the same topic. You still need to wait 72 hours to bump unless someone has posted after you. Unfortunately, not all problems get resolved but the members here try their best to help each other out.
 

Kraft

Sponsor

I actually have that in another demo that I made...

it works with bridges... I can give you that if you want ^_^

Another idea, if you are having multi level maps (with lots of levels) to have a lot of the same map, just with different settings (ie you can walk over a bridge on one map, then you duplicate the map, and make it so you walk under it in another map) and then when you are walking on stairs up and down the level, use the "transfer player" command, and turn off fading.

it works, trust me ^_^
 
A variable is a container for a number.

Wikipedia":13mwsalj said:
In computer science and mathematics, a variable (IPA pronunciation: [ˈv?ɹiəbl]) (sometimes called a pronumeral) is a symbolic representation denoting a quantity or expression. In mathematics, a variable often represents an "unknown" quantity that has the potential to change; in computer science, it represents a place where a quantity can be stored. Variables are often contrasted with constants, which are known and unchanging.

If you're still confused, think of algebra in math.

Here's an example of how to use variables:

Say you wanted to check how much gold a player spent after shopping. You would assign the amount of gold he currently has to a variable (Let's call it "Gold Amount") before the shop window opens. Once he's done shopping, you would assign his new gold amount to a new variable (Let's call it "Gold Amount02"). Then you would subtract "Gold Amount02" from "Gold Amount" and what's left would be how much gold's worth of items he bought, assuming he didn't sell anything.

I suggest you get familiar with variables, because you'll be using them a lot.
 

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