Be a Supporter!

need some help with my video game

  • 260 Views
  • 8 Replies
New Topic Respond to this Topic
voter96
voter96
  • Member since: Dec. 26, 2007
  • Offline.
Forum Stats
Member
Level 10
Musician
need some help with my video game Jan. 18th, 2013 @ 02:09 PM Reply

this is a game that I'm working on as a college assignment, but there's a few issues I have with it at the moment.

it's mostly bug free from what I can tell, but I'd like to know how to add some things

things I want to add:
using E (which currently swings a sword) kills the goblins
the player to stop moving when he dies
a reset game function (I tried doing this with xstart and ystart, but that just crunched all the symbols into the center of the stage)
goblins to patrol back and forwards

there also seems to be a bug that slowly moves all the objects around when the background moves. I've been scratching my head on that one for a while, but I've got no idea what's causing it.

any advice/feedback is awesome, any bugs you find, obviously tell me, that'd be awesome.

I'll probably do some more work on this over time and submit it to newgrounds when it's done. y'know... without the copyrighted content and music.

----
DOWNLOAD LINKS
----

Google docs: https://docs.google.com/file/d/0B4OhtTMaoVPfMXlXVnRJcUtzaGc/
edit

mediafire: http://www.mediafire.com/?42frc571qn2i2fd


Elephants only come out at night, for they are nocturnal. If they go out during the daylight, they melt.

BBS Signature
Sandremss128
Sandremss128
  • Member since: Aug. 22, 2009
  • Offline.
Forum Stats
Supporter
Level 11
Programmer
Response to need some help with my video game Jan. 18th, 2013 @ 05:14 PM Reply

At 1/18/13 02:09 PM, voter96 wrote: this is a game that I'm working on as a college assignment, but there's a few issues I have with it at the moment.

Stop right there, we're not here to do your homework. If your education provides insufficient material for you to study you can ask specific questions.

voter96
voter96
  • Member since: Dec. 26, 2007
  • Offline.
Forum Stats
Member
Level 10
Musician
Response to need some help with my video game Jan. 19th, 2013 @ 08:55 AM Reply

At 1/18/13 05:14 PM, Sandremss128 wrote:
At 1/18/13 02:09 PM, voter96 wrote: this is a game that I'm working on as a college assignment, but there's a few issues I have with it at the moment.
Stop right there, we're not here to do your homework. If your education provides insufficient material for you to study you can ask specific questions.

but I did ask about a specific problem, there are objects in the game that move where they aren't supposed to. doors go out of line with the walls. it's pretty problematic, because it means the player can just walk around them into areas they shouldn't be able to. that was the main issue, everything else I was just asking because I was here and I thought I should.

I can't give you specific details about it, because according to my knowledge and what I've been taught, it should all work perfectly, but it doesn't. I don't understand what I've done wrong here.


Elephants only come out at night, for they are nocturnal. If they go out during the daylight, they melt.

BBS Signature
pirateplatypus
pirateplatypus
  • Member since: Sep. 27, 2011
  • Offline.
Forum Stats
Member
Level 15
Programmer
Response to need some help with my video game Jan. 19th, 2013 @ 11:34 AM Reply

At 1/18/13 02:09 PM, voter96 wrote: it's mostly bug free from what I can tell, but I'd like to know how to add some things

If I learned anything from Microsoft, any piece of software is bug free if you insist hard enough that they are actually features.

Why not post some code* related to the problem(s) and upload your swf to the dumping grounds?

* For the love of god, use the damned code tags.

I know you posted the download links, but honestly, I'm not invested enough to go to an external site to look at anything.


"If loving Python is crazy then I don't want to be sane." -Diki

nitokov
nitokov
  • Member since: May. 8, 2012
  • Offline.
Forum Stats
Member
Level 05
Programmer
Response to need some help with my video game Jan. 19th, 2013 @ 12:51 PM Reply

with all due respect i think your code is piece of crap:

GoalConfineDecor.x -= xSpeed;
					GoalConfineDecor.y -= ySpeed;
					WorldDec1.x -= xSpeed;
					WorldDec1.y -= ySpeed;
					finalKey.x -= xSpeed;
					finalKey.y -= ySpeed;
					door1.x -= xSpeed;
					door1.y -= ySpeed;
					door2.x -= xSpeed;
					door2.y -= ySpeed;
					door3.x -= xSpeed;
					door3.y -= ySpeed;
					door4.x -= xSpeed;
					door4.y -= ySpeed;
					door5.x -= xSpeed;
					door5.y -= ySpeed;
					door6.x -= xSpeed;
					door6.y -= ySpeed;
					door7.x -= xSpeed;
					door7.y -= ySpeed;
					diningTable.x -= xSpeed;
					diningTable.y -= ySpeed;

wtf is this supposed to be? Do you even know what as3 is capable of?


RangeError: Error #1125: The index 4 is out of range 4.

voter96
voter96
  • Member since: Dec. 26, 2007
  • Offline.
Forum Stats
Member
Level 10
Musician
Response to need some help with my video game Jan. 19th, 2013 @ 03:12 PM Reply

At 1/19/13 12:51 PM, nitokov wrote: wtf is this supposed to be? Do you even know what as3 is capable of?

no, for the love of god, please tell me how I can shorten that


Elephants only come out at night, for they are nocturnal. If they go out during the daylight, they melt.

BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to need some help with my video game Jan. 19th, 2013 @ 03:19 PM Reply

At 1/19/13 03:12 PM, voter96 wrote:
At 1/19/13 12:51 PM, nitokov wrote: wtf is this supposed to be? Do you even know what as3 is capable of?
no, for the love of god, please tell me how I can shorten that

Stick it into an array, and use a for loop to iterate through each element

voter96
voter96
  • Member since: Dec. 26, 2007
  • Offline.
Forum Stats
Member
Level 10
Musician
Response to need some help with my video game Jan. 19th, 2013 @ 03:23 PM Reply

At 1/19/13 11:34 AM, pirateplatypus wrote: * For the love of god, use the damned code tags. I know you posted the download links, but honestly, I'm not invested enough to go to an external site to look at anything.

because I don't know what's causing it, so I wouldn't know what to tag.
Everything is being moved around the character when the character hits the edge of the screen through xSpeed and ySpeed in order for the map to move (which I have just been informed is a crap way of doing it)
some things aren't moving at the same speed, which means that they're going out of place.


Elephants only come out at night, for they are nocturnal. If they go out during the daylight, they melt.

BBS Signature
egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Member
Level 05
Game Developer
Response to need some help with my video game Jan. 19th, 2013 @ 06:15 PM Reply

At 1/19/13 03:23 PM, voter96 wrote: because I don't know what's causing it, so I wouldn't know what to tag.
Everything is being moved around the character when the character hits the edge of the screen through xSpeed and ySpeed in order for the map to move (which I have just been informed is a crap way of doing it)
some things aren't moving at the same speed, which means that they're going out of place.

yeah, it's a crap way of doing it. One of the main benefits to OOP is the fact that everything's separated into logical areas. The UI class is aware of the Player class because the Player class contains the health which the UI needs to display. The Player class is aware of the Keyboard class and Mouse class, which is needed for controls, and those two classes are aware of nothing.

make sense?


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature