The Daily Click ::. Forums ::. Klik Coding Help ::. My code sucks.
 

Post Reply  Post Oekaki 
 

Posted By Message

Rio



Registered
  29/12/2002
Points
  490
10th November, 2006 at 20:53:24 -

I finnaly got TGF. And am very glad to be making games again. And I know the basics of the custom side scroller platform movement exept one little detail. My left and right movement works flawlessly, but my jump is something I have not been able to figure out for the life of me. I have no fastloop or advanced math objects unfortunatly, so when my characature jumps... actually he cant even jump. But when he walks off a ledge he falls at a constant slow rate until he hits the ground, he cant jump. and this way I've avoided going through the ground but have a horrible engine, some one end my misery.

I'm also having a hard time finding a good grid movement RPG type movement without having to use more than one object. If anybody's got any tips.

 
Still searching for the perfect game.

Rio



Registered
  29/12/2002
Points
  490
11th November, 2006 at 04:11:11 -

Could ya do a little better than that?...

Sorry to critisize your efforts, but I'm having no problem with jumping, trajectory, or gravity, only landing on the ground without going through the ground.

As my characature gains speed when falling, he goes from moving 1 pixel at a time to 2 pixels to 3 and so on with a maximun velocity of 3-5 pixels (Ypos) + 3. And when landing the bottom detector it triggered and he is back to normal, but he ends up a couple pixels below ground level, which results in side detector malfunction some times and over all a very unprofetional or none smooth look to the howl thing. Further I am at a road block where I cannot produce the multiple exelent platformers I have in mind with this minor problem in my way.

 
Still searching for the perfect game.

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
11th November, 2006 at 05:40:20 -

"I cannot produce the multiple exelent platformers I have in mind with this minor problem in my way. "

Yes, I can tell they'll be excellent.

'Push' the object up out of the ground.

-Bottom detector overlaps background
+Y pos player -1

If you don't want to use fastloops, then you can repeat the code. Like:

-Bottom detector overlaps background
+Y pos player -1
-Bottom detector overlaps background
+Y pos player -1
-Bottom detector overlaps background
+Y pos player -1
-Bottom detector overlaps background
+Y pos player -1
-Bottom detector overlaps background
+Y pos player -1
-Bottom detector overlaps background
+Y pos player -1
-Bottom detector overlaps background
+Y pos player -1

All in a row. Shame, fastlooping makes things less messy and is faster.

Image Edited by the Author.

Image Edited by the Author.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
11th November, 2006 at 06:20:23 -

And you were gonna start with C++, and "pawn" us all?

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
11th November, 2006 at 08:40:41 -

You finally got... TGF?
Bit outdated, don't you think? :-/

You could do a quick check how many pixels the person needs to be pushed up, then 'push' up his y-position up that amount of pixels.

 
Old member (~2004-2007).

Rio



Registered
  29/12/2002
Points
  490
12th November, 2006 at 04:36:29 -

Yes Peblo, those were some exelent suggestions. But there is still room for further improvement, like not going through the floor at all. Though this new code may make it so, once I try it. Also I havent checked the Click Team website, but is there extensions/tools you can download for TGF, perhaps including the fastloop tool? I think its a tool anyway? If so I'm there.

Further more "...!?..."

 
Still searching for the perfect game.

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
12th November, 2006 at 06:21:24 -

Why are you using TGF when you've got MMF? You do realize that TGF is an outdated version of MMF, and that MMF in turn is an outdated version of MMF2?

My point is that you could easily do this in MMF, with some nice fastloops and stuff. Besides, TGF has an awful lot of bugs and limitations that are fixed in MMF. I'd convert the .gam to .cca, and continue in MMF if I were you.

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
12th November, 2006 at 14:38:18 -

Don't listen to the haters man, TGF is just fine. It's not about the tool, it's about how you USE the tool.

Yes, TGF is limited, the most annoying of which is the 256 object limit. But pretty much any other problem can be worked around with a bit of thinking. I used TGF exclusively for the last 6 years (recently got MMF2 though), and yes, things are harder to do in it (Parallax scrolling for example) but it's completely possible.

If you want, you can download the TGF fastloops extension over at the extension archive (there's a link on CT's page somewhere).

 
Craps, I'm an old man!

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6946

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
12th November, 2006 at 14:45:05 -

MMF 1.5 is a piece of crap. Only emo nerds use it.

 
www.hayovanreek.nl

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
12th November, 2006 at 16:05:28 -

Can we please not turn this into another mindless TGF vs MMF flamewar? I expressed my opinion on the matter, and now I'm an emo nerd and a TGF hater? Gee, thanks

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
12th November, 2006 at 16:18:36 -

Yes, and I was simply saying that it's not as limited as everyone else seems to think. There CAN be two differing opinions.

Rio, if you want a decent Custom Platform movement:

http://www.ectoprods.com/Shab/Examples/KA/

Traprunner2 is newer than CPM4, but I don't know how well I commented each one.

 
Craps, I'm an old man!

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
12th November, 2006 at 17:53:07 -

I really have nothing against TGF. I still use it for simple things, but whenever I want to make something more advanced, such as a CPM, I use MMF. Personally, I think that if you have a problem making a playable CPM because of TGF limitations, then you should move on to MMF. I'm not saying that TGF can't do it, but that it's easier in MMF.

Or maybe I'm just saying that because I don't have extension support for my TGF

Ah nevermind, carry on.

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
12th November, 2006 at 17:58:52 -

take a look at my engines there dude, no Extensions at all.

 
Craps, I'm an old man!

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
13th November, 2006 at 01:15:43 -

Yeah, but they aren't perfect. In CPM4, sometimes when you hit the ground, you wouldn't be pushed out of the ground directly, but it was delayed for a frame or two.

Image
http://i5.photobucket.com/albums/y162/Aggggge/bleh.png

Okay, that's hardly noticeable, but it could easily be fixed with a fastloop or two. I was gonna check the code, but I got a read error when opening it with TGF

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
13th November, 2006 at 01:38:53 -

Yeah or you know the replacement for fastloops, copy pasting events over and over. Not that it's in any way efficient.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
   

Post Reply



 



Advertisement

Worth A Click