The Daily Click ::. Forums ::. Klik Coding Help ::. How make it stop gliching when the player hits a backdrop and wont glitch itself.?
 

Post Reply  Post Oekaki 
 

Posted By Message

Videogameget



Registered
  03/07/2011
Points
  405
15th July, 2011 at 06:43:40 -

It's really annoying to make a game while having this bug that seems unfixible... so can anyone help me on this one?...

Making a game called alpha... right now is on indev mode.

Thanks!

-Alfredo

 
In reconstruction.

Aruthaz

Forsaken Protector

Registered
  24/06/2011
Points
  76
15th July, 2011 at 07:10:54 -

Please try to organize your question in an easily understood manner, and maybe post the mfa so people can see what's happening? You need to use more specific words than "glitching" and give people at least some context for your problem.

 
-----------------------------------------
Death is the only cure for madness such as his, even that solace escapes him.
iOS App -> http://itunes.apple.com/us/app/jimmy-dungeon-escape!/id467193691?ls=1&mt=8

Videogameget



Registered
  03/07/2011
Points
  405
15th July, 2011 at 07:21:49 -

K... So when my character walks to a a backdrop on MMF2D It works and while i was working more i found this problem. The character gets stuck and falls into a pit. I cant seem to fix that because i set when player touches backdrop it stops. I don't know is there anyway to fix it because when i try to jump in this backdrop while testing it... It causes this error...

Thanks.

 
In reconstruction.

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
15th July, 2011 at 11:05:37 -

Are you using the in built platform movement?? if so this is the reason for your bug. You will need to either:

1 - Code a custom platform engine
or
2 - use the Platform Movement Object (easier option if you are new to mmf)

 
n/a

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
15th July, 2011 at 13:07:34 -

Also, I'm not totally clear on your problem, but if you want the player object to be standing on a Backdrop object, be sure you've checked the properties for the Backdrop and it says "Obstacle" and not "None" for the Type of Backdrop that it is. That's the thing that held me up for the longest time...

Good luck on fixing your issues.

 
n/a

Videogameget



Registered
  03/07/2011
Points
  405
15th July, 2011 at 21:39:47 -

Player is set on platform... backdrop is set on obstacle because i don't want the player jumping and cheating to go to the ending and when player hits backdrop it's stop.

Any mode to fix the glitch that when i jump to a backdrop platform in a pit of lava it stops and falls?

Sorry for my horrible english...

 
In reconstruction.

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
16th July, 2011 at 02:24:08 -

Possibly you have the background object on a different layer to the active object. MMF2 does not detect collisions between objects on different layers.

Upload the mfa file and I'm sure we can help yo.

 
n/a

Videogameget



Registered
  03/07/2011
Points
  405
16th July, 2011 at 03:42:17 -

Cant give you the game due that its on severely indev mode... Mostly saying... NOT EVEN 4 % done... D:

 
In reconstruction.

Aruthaz

Forsaken Protector

Registered
  24/06/2011
Points
  76
16th July, 2011 at 04:31:19 -

You can still post what you have, it's very hard to fix something if you cant see it...

 
-----------------------------------------
Death is the only cure for madness such as his, even that solace escapes him.
iOS App -> http://itunes.apple.com/us/app/jimmy-dungeon-escape!/id467193691?ls=1&mt=8

Videogameget



Registered
  03/07/2011
Points
  405
16th July, 2011 at 04:34:24 -

Image

 
In reconstruction.

Aruthaz

Forsaken Protector

Registered
  24/06/2011
Points
  76
16th July, 2011 at 05:16:38 -

Not quite helpful, as I still can't see your code, I don't understand why you can't just put the mfa up on Mediafire or something...

 
-----------------------------------------
Death is the only cure for madness such as his, even that solace escapes him.
iOS App -> http://itunes.apple.com/us/app/jimmy-dungeon-escape!/id467193691?ls=1&mt=8

Videogameget



Registered
  03/07/2011
Points
  405
16th July, 2011 at 05:57:13 -

http://www.mediafire.com/?24hyx78cqq67x4x Not that complex and i did the work so please dont steal my idea...

 
In reconstruction.

Aruthaz

Forsaken Protector

Registered
  24/06/2011
Points
  76
16th July, 2011 at 06:10:29 -

Lol, no one's gonna steal your idea, we're all friends here And I wasn't experiencing any sort of glitches, though I have a piece of criticism: The MMF2 built-in platform movement is quite glitchy and not very customisable, I reccomend programming your own custom platform engine, if you can. But this may just be my preference, it's your game.

 
-----------------------------------------
Death is the only cure for madness such as his, even that solace escapes him.
iOS App -> http://itunes.apple.com/us/app/jimmy-dungeon-escape!/id467193691?ls=1&mt=8

Videogameget



Registered
  03/07/2011
Points
  405
16th July, 2011 at 06:20:56 -

But how can i fix some of the bugs?

 
In reconstruction.

nim



Registered
  17/05/2002
Points
  7234
16th July, 2011 at 06:22:16 -


Originally Posted by Alfredo Zone
Player is set on platform... backdrop is set on obstacle because i don't want the player jumping and cheating to go to the ending and when player hits backdrop it's stop.

Any mode to fix the glitch that when i jump to a backdrop platform in a pit of lava it stops and falls?

Sorry for my horrible english...



It's hard to understand your problem. Perhaps you have an "On Collision..." condition where you should have an "Object Overlaps with..." condtion, and that's why it's stopping once and then continuing to fall through the backdrop.

 
//

Videogameget



Registered
  03/07/2011
Points
  405
16th July, 2011 at 09:00:47 -

it reduces the bugs but yet it still has the issue... D:

 
In reconstruction.

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
16th July, 2011 at 12:20:17 -

The file was removed before I had a chance to see it myself. But someone else recommended a platform engine. Here's one that's already done for you, and it will teach you how to make it yourself. Look for David N's Custom Platform Movement here:

http://www.clickteam.com/website/usa/tutorials

What I recommend is that you try the game by replacing all the tutorial's artwork with your own, and see if that works for you.

As you learn more, then you can take on bigger and more ambitious projects. Working with tutorials is a GREAT way to start.

 
n/a

Videogameget



Registered
  03/07/2011
Points
  405
16th July, 2011 at 21:27:14 -

Thanks and it seems i did alot of mistakes! anyway i do know like 30% off good programing with this. Just the movement not... Great Program because i keep learning each second. THX

 
In reconstruction.

Videogameget



Registered
  03/07/2011
Points
  405
17th July, 2011 at 02:20:52 -

Oh god... The engine broke 10 times more than i thinked... now the player falls all the way down even if it is set to stop and obstacle... what have i done!

 
In reconstruction.

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2723
20th July, 2011 at 09:59:59 -

Hi there,

I read the entire post, but I am still not exactly sure what the problem is or was. And now that you've stepped up to a new engine (or maybe not) I have even less clues.

But apart from that there was something with a lava pit in which the player shouldn't fall because otherwise he would die or drown in the pit.

If you're using the build in platform movement, you still have to code all the events that will occur like collisions. However there could be a problem if the background object which is an obstacle is overlapping one or more background objects which are from the platform type. I am not sure if that is the case, because I can't see this in your picture, is the red lava in front of those dark grey objects? So there is a part from the dark grey objects behind the lave? This could be your problem.

If you're using a custom platform movement or the platform movement object, you will also have to code the collisions with your player and your obstacles or platforms. So when overlapping a backdrop object stop the movement, but with a custom movement, stop subtracting a number of pixels from it's vertical position.

Hey wait, I might have just realized something: you said you were using 'collide' which only detects a collision and you probably should be using 'overlapping'. The overlapping condition checks all the time if the player is on a platform or obstacle object. The collision condition just reports a collision when you hit the object and doesn't check for the overlapping condition while you're on the object.

Hope this helps and clears things.

 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click