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.

shakeing a tree or smashing into a tree

I wanna be able to shake a tree to make things fallout like apples hanging from a tree or items stuck high up in a tree

im guessing its some short of script... I hope not since im noob in that area.

if its a event set up can anyone please give me a hand on how to do this


I liked how link, in zelda link to the past did it how u can run and smash into a tree to shake it, I would like the same idea or a bit different

Please help thanks
 

Tindy

Sponsor

Most likely an event. You need to make a charset of the tree being shook, and use variables to decide what, if anything, you get.

So the setup would probably be an event next to the tree event that specifies if you're coming towards the tree (use a conditional branch) that then makes the character at 0% opacity. The tree shaking event would have the character shaking it included; after it plays out bring the character back to 100% opacity. Once it's done being shook I imagine using a switch to make an event appear and "fall" towards the ground (making it look like its falling would be the event movement).

I haven't actually tried it but I'm about 75% sure (without checking) that that would work.
 

Nolund

Sponsor

Tindy has it.

Once you have a charset of the tree's movement, you basically need to set 2 variables in your system. "A" would be that there is no item in the tree, and "B" would be that there is. I'd use self switches to turn on these variables, but that's just because I use self switches on chests and such, and I'd classify this as the same thing.

Basically, in an event, you would go to a tree, and on Action Button (or whatever you want) you'd bring up the charset of the tree shaking (if your character is in the charset, do what Tindy said and make its opacity 0), and turn Self Switch "A" or "B" on.

On a new event page, you would just event in the item falling from the tree however you want. After that, do one more new event page, and turn Self Switch "B" on so that you can shake the tree, but nothing else comes out.
 
I'd like this feature myself so if anyone out there has a shaking tree animation please PM me with a link.

Much appreciated.

@dac420 - If I get the animation or graphic I need I'll happily put together a demo for you.
 

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