PDA

View Full Version : Sequel surprise



mordormaster
May 4th, 2010, 12:58 PM
So i finished my first game and decided to change things up in the second with the walls and the character in the same symbol so its possible to have things running over my character but for some reason its hit-testing only half the object and random areas on others, any help? :)

TOdorus
May 5th, 2010, 08:59 AM
mordormaster I am (and I think others too), hesitant to help you if you present your source this way. I won't open a zip that fast to help somebody, because


Virusses
I have to look for the code that applies to the problem
I have to interpret the code myself without some help from the creator to what Might cause the problem
So if you could post a swf and the part of code that is giving you problems I, and probably others too, will look at it.

mordormaster
May 5th, 2010, 06:14 PM
Not sure if i should be offended i look like a virus spammer :P oh well,

[code]onClipEvent (enterFrame) {
if (_root.Floor.Wall.hitTest(getBounds(_root).xMax, _y, true)) {
_root.Floor._x += _root.paceSpeed;
_root.Floor.Man._x -= _root.paceSpeed;
}
if (_root.Floor.Wall.hitTest(getBounds(_root).xMin, _y, true)) {
_root.Floor._x -= _root.paceSpeed;
_root.Floor.Man._x += _root.paceSpeed;
}
if (_root.Floor.Wall.hitTest(_x, getBounds(_root).yMax, true)) {
_root.Floor._y += _root.paceSpeed;
_root.Floor.Man._y -= _root.paceSpeed;
}
if (_root.Floor.Wall.hitTest(_x, getBounds(_root).yMin, true)) {
_root.Floor._y -= _root.paceSpeed;
_root.Floor.Man._y += _root.paceSpeed;
}
}
[code]

Thats on a movieclip inside of a layer on the movieclip of my character. The source is safe but you only have my word on that so up to you :)

mordormaster
May 12th, 2010, 04:26 AM
Anyone?

mordormaster
May 30th, 2010, 04:49 PM
Hate to re-bump but anybody?

dandylion13
May 30th, 2010, 05:27 PM
Hey mordormaster, we'd love to help, but we're lazy :)
Some of us may just not have the patience to download a zip, start up flash and debug the code. We're busy with lots of other things, so you need to sell the problem to us a bit to get us interested ;)
If you upload the SWF somewhere and post the code that you think might be the problem, along with maybe a diagram or two to illustrate, you might get some helpful responses.

mordormaster
May 31st, 2010, 05:23 AM
Alright then. Well i have one symbol which the floor layer. Inside it is the walls and my character. As the floor moves right for example the character moves left so the character appears in the middle. This way i can have stuff pass over the character and makes depth and stuff. This is the best diagram i could do to show the layers.

http://img41.imageshack.us/img41/930/layerbreakdown.jpg (http://img41.imageshack.us/i/layerbreakdown.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)

And the .swf is http://megaswf.com/view/89334386e3d36ff0d84eb2bcbf2ab421.html

Hope thats enough to interest. The code on the character is on my previous post