What would you want to see? Hblades Pack of functions

Game Editor comments and discussion.

What would you want to see? Hblades Pack of functions

Postby Hblade » Tue Aug 09, 2011 11:12 pm

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?
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: What would you want to see? Hblades Pack of functions

Postby Jagmaster » Wed Aug 10, 2011 12:36 am

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. :P
When I think of more, I'll tell you. :D

Edit: Make a function that will deliver me endless food. XD
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: What would you want to see? Hblades Pack of functions

Postby Game A Gogo » Wed Aug 10, 2011 12:44 am

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. :P
When I think of more, I'll tell you. :D

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
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: What would you want to see? Hblades Pack of functions

Postby Jagmaster » Wed Aug 10, 2011 12:46 am

The main issue of MoveTo is that it's velocity cannot be stopped for a pause. :?
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: What would you want to see? Hblades Pack of functions

Postby Game A Gogo » Wed Aug 10, 2011 12:50 am

I wonder, if you make another moveto to it's current location when you pause, maybe that would work?
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: What would you want to see? Hblades Pack of functions

Postby Jagmaster » Wed Aug 10, 2011 12:53 am

I might try that, Thanks!

You're not off the hook yet Hblade >:D
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: What would you want to see? Hblades Pack of functions

Postby skydereign » Wed Aug 10, 2011 1:24 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: What would you want to see? Hblades Pack of functions

Postby Hblade » Wed Aug 10, 2011 2:27 am

Okay lol Ill work on this soon o.o I'm trying to learn how to program cleaner code.

Sky: Awesome sauce.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest