Hello guys, i have tried to make some spells from the tuts on this site but many of the functions doesn't like:
I would be nice if anyone could help me
Hi! I'm a fellow new player and I too have been struggling to find up-to-date information on the current abilities and limitations of the in game code. Here's some of what I've found out so far...
Since CodeSpells is still an Early Access game, it is under constant development with features being added and removed with every update. Even though there are many posts on the forum of cool spells and helpful tips, many of them are outdated, so their information is no longer accurate.
In your case, both of the functions you're trying to use are deprecated. The best place to find up-to-date code documentation is the in-game documentation section. If you press Esc you should see it above the settings button on the left hand side.
The orb.Instantiate function you're trying to use is probably the equivalent of the current createOrb function. As for the orb.transferManaToCaster function, I'm afraid I haven't found anything like that in game so far. Perhaps the depleteManaFromOrbsInRegion function could be useful? If you set negative values in that function, it adds mana to the orb (currently a bug, will eventually be fixed).
Hopefully this helps you! I know how confusing it can be trying to learn from older versions of the game.
Unfortunately we can't currently transfer mana to the caster. We can only deplete it. Its a bummer for sure and I hope they add it back in. It was really good for defensive spells as well as healing spells.