| Blockland Forums > Modification Help |
| One-use Items |
| (1/2) > >> |
| Mr.Noßody:
I'm trying to make some one-use items that have the temporary effects of changing a player in terms of speed, visibility, size, and health. I have rough idea of how I could execute most of these ideas: -Speed would work if I could change the player-type to "Quake". -Visibility, or invisibility, could be done by hiding nodes. -Size, I really don't know. I guess I could look at the Super Mushroom. -Health, by that I mean raising the players max health. This could also be done with a Player-type swap, but Id need to include it with the item. I do not know how or if you can change a player-type through code. I also have no idea how to make these effects temporary. An RTB pref could control the time the effect can take place. |
| Zloff:
Very possible look through Pandan's armor well crap for playertype changing, and look at that super mushroom for temporary effects(It has a delayed schedule that, in some variable of time in milliseconds, changes you back to normal size. You could just switch that scaling code with the playertype changing code). |
| otto-san:
The super mushroom literally just does basically this: --- Code: ---%player.setPlayerScale("5 5 5"); %player.schedule(3000,setPlayerScale,"1 1 1"); --- End code --- |
| Mr.Noßody:
So, those simple lines of code makes someone grow, them shrink 3 seconds later? Cool. |
| otto-san:
--- Quote from: Mr.Noßody on June 19, 2011, 03:58:19 PM ---So, those simple lines of code makes someone grow, them shrink 3 seconds later? Cool. --- End quote --- Yeah except that I made it so that they change 5 5 5 from 5 5 5 three seconds later. fixed |
| Navigation |
| Message Index |
| Next page |