Re: bgt, having trouble with classes, again
Thanks cae_jones. Slowly I'm putting this together.coltonhill,I would be glad to receive your assistance. You may send me a forum email. If you want my twitter its @firebird1409
URL: http://forum.audiogames.net/viewtopic.php?pid=235978#p235978
Re: bgt, having trouble with classes, again
Omar, I would be more than happy to help you. If you want, just add me on skype and i can help you with almost anything oyu need help with with bgt. As long as you're not using geometry... Cae's your go to for that.
URL: http
Re: bgt, having trouble with classes, again
The error it gave points to this line:if(shipx-3==barrier.x or shipx-2==barrier.x or shipx-1==barrier.x or shipx==barrier.x or shipx+1==barrier or shipx+2==barrier or shipx+3==barrier)It should be:if(shipx-3==barrier.x or shipx-2==barrier.x
Re: bgt, having trouble with classes, again
is anyone willing to help me any further?I'm still confused at post 8, and have tried re reading the chapter on objects, classes and handles.I get the idea of classes, just handles themselves confuse me.
URL: http://forum.audiogames.net
Re: bgt, having trouble with classes, again
It looks like you aren't storing the walls you're creating. If I understand the code correctly, the newgame function does this:
URL: http://forum.audiogames.net/viewtopic.php?pid=235793#p235793
Re: bgt, having trouble with classes, again
It looks like you aren't storing the walls you're creating. If I understand the code correctly, the newgame function does this:assign shipx, shipy, and speed (global variables)play the engine sound, and assign its slot number to the global
Re: bgt, having trouble with classes, again
(Sorry, somehow it hit submit before I finished writing the post. I tried to edit more detail in.)
URL: http://forum.audiogames.net/viewtopic.php?pid=235796#p235796
___
Audiogames-reflector
bgt, having trouble with classes, again
I'm developing a game which I hope you guys will like, but I'm having some issues.I've had these issues before, and was never really able to come upon a surefire solution.The code is in very early beta stages at the moment, so I will go ahead
Re: bgt, having trouble with classes, again
er, crap.This is really my first time attempting to use classes. What would be the ideal way to set and store the walls then?Thanks for your reply.
URL: http://forum.audiogames.net/viewtopic.php?pid=235794#p235794
Re: bgt, having trouble with classes, again
That was what your current code does.What you want to do is more like this:for(uint i=0; i<wall_num; i++) {wall barrier(random(0, 100), random(0, 100), random(0, 100));walls.insert_last(barrier);}Assuming that you have an array of walls, wh
Re: bgt, having trouble with classes, again
I mostly understand what your saying, but beyond this my head exploded:create a local variable called barrier, that is a wall with random parameters.delete barrier, since this iteration of hte loop is complete.increment i.repeat the last 4 lines
Re: bgt, having trouble with classes, again
I've done all the necessary modifications to the code and I now get the following error when attempting to run. Is this me being an idiot or is there something severely wrong?File: D:\spaceshiptest\game.bgtOn line: 68 (1)Information: Compiling
Re: bgt, having trouble with classes, again
I think so, I would like to point out this is my first attempt at using classes. And handles to objects confuse the royal crap out of me.Thanks for all your help
URL: http://forum.audiogames.net/viewtopic.php?pid=235834#p235834
Re: bgt, having trouble with classes, again
The trouble is with the parts that say "==barrier" without any properties (barrier.x? barrier.y?).
URL: http://forum.audiogames.net/viewtopic.php?pid=235833#p235833
___
Audiogames
14 matches
Mail list logo