I’m creating a game for my class where the character is able to pick up one of 4 varieties of Power Ups; my main issue is that I’m new to the whole scripting aspect of this program and can’t figure out how to write scripts for the various powers. Does anyone know of a decent tutorial on this particular subject? I’ve tried looking around and am having limited luck on this. Any help would be greatly appreciated.
What power ups do you need? Maybe you can make them chabge a variable?
Sorry for the delay in posting, I had work and the internet connection sucks as of late. Anyways, I’m attempting to make different powerups along these lines:
Powerup that allows him to flap faster
Double bonus powerup
Teriyaki powerup allows him to jump off walls and punch and kick
The buffalo powerup increased dmg
All powerups are lost once you’re hit. Buffalo Powerup takes 2 to lose.
I’m understanding C# to a point but haven’t found any decent tutorials on how to script something like this, so any help or tutorials that you could point me towards to complete this would be greatly appreciated.
You won’t find tutorials for something like this. You need to apply your own brains and create logic. It is actually exceedingly simple to make such powerups. I can list a few ways you can make a few of the powerups.
For the powerup with allows the character to flap faster, increase the variable which defines the speed at which your character can flap. Create a Boolean which checks wether it has been used and if it has been, set it to true and disable it’s use. As for the buffalo powerup, you need a variable which contains damage and just double the value of the variable.