Page 1 of 1
What would you want to see? Hblades Pack of functions
Posted:
Tue Aug 09, 2011 11:12 pm
by Hblade
Hey guys I wanna build a pack of functions that make things easier and convert it to a C file (Or many C files) which you can add in global code. using the Load thing. What type of functions would you want to see?
Re: What would you want to see? Hblades Pack of functions
Posted:
Wed Aug 10, 2011 12:36 am
by Jagmaster
Would it be possible to make a glitchless alternative to MoveTo with avoid actors? Do this and I'll give you um... all of my +1's for 1 day until I run out.
When I think of more, I'll tell you.
Edit: Make a function that will deliver me endless food. XD
Re: What would you want to see? Hblades Pack of functions
Posted:
Wed Aug 10, 2011 12:44 am
by Game A Gogo
Jagmaster wrote:Would it be possible to make a glitchless alternative to MoveTo with avoid actors? Do this and I'll give you um... all of my +1's for 1 day until I run out.
When I think of more, I'll tell you.
Edit: Make a function that will deliver me endless food. XD
Possible but ever cpu consuming, at least my code was... it's the one in that space traveler thing
Re: What would you want to see? Hblades Pack of functions
Posted:
Wed Aug 10, 2011 12:46 am
by Jagmaster
The main issue of MoveTo is that it's velocity cannot be stopped for a pause.
Re: What would you want to see? Hblades Pack of functions
Posted:
Wed Aug 10, 2011 12:50 am
by Game A Gogo
I wonder, if you make another moveto to it's current location when you pause, maybe that would work?
Re: What would you want to see? Hblades Pack of functions
Posted:
Wed Aug 10, 2011 12:53 am
by Jagmaster
I might try that, Thanks!
You're not off the hook yet Hblade >:D
Re: What would you want to see? Hblades Pack of functions
Posted:
Wed Aug 10, 2011 1:24 am
by skydereign
Having another MoveTo will interrupt the current MoveTo. If you write a wrapper to MoveTo, you can have variables to hold the current destination, that way when you pause it, you can resume it whenever you want. I've written my own moveto function and it works fine and was very helpful, but the avoid function is out of the question in big games or games with tiles. But, it bypassed all of the bugs I've experienced with MoveTo so I'd definitely recommend one for the list.
Re: What would you want to see? Hblades Pack of functions
Posted:
Wed Aug 10, 2011 2:27 am
by Hblade
Okay lol Ill work on this soon o.o I'm trying to learn how to program cleaner code.
Sky: Awesome sauce.