The Daily Click ::. Forums ::. Klik Coding Help ::. Custom Platform Engine
 

Post Reply  Post Oekaki 
 

Posted By Message

C.J Workshop.



Registered
  10/09/2004
Points
  255
11th September, 2004 at 06:14:17 -

I need help with making a custom platform engine i have recentley started making a game and realized i had a few glitches so i wanted to know if anyone could help me i have looked at some tutorials which tell you about values and x y positions but i just dont get it it all seems so complicated could someone help me please.

I also have downloaded loads of platform engines but when i try and open them in the games factory it says read error

 
C.J

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
11th September, 2004 at 06:30:18 -

Do you have mmf? I think there is a custom platform movment extension. I could send you my own custom TGF platform movment, but the codes are mixed up so its hard to edit them. But I recomend learning it yourself by reading more articles here at dc.

 
http://www.robocaptain.com

C.J Workshop.



Registered
  10/09/2004
Points
  255
11th September, 2004 at 06:30:54 -

no i have tgf

 
C.J

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
11th September, 2004 at 08:58:18 -

okay just think of X and Y positions as "Co-ordinates" because thats what they are and youll find it alot easier to visualize.
-----------------------------------------------------------------
The X co-ordinate is the horizontal position (example: -)
The Y co-ordinate is the vertical position (example: |)
-----------------------------------------------------------------
Lets say the size of your games "window" is 640x480
well the 640 is the X, and the 480 is the Y.
so if i wanted to set the player at lets say the middle of the window id go:
Set players X position to: 320
Set players Y position to: 240
-----------------------------------------------------------------
for movement and stuff i dont know how to put in the way you want but heres an example for a Custom walking movement:
Repeat while "Right" is pressed: set players X to: Player X +1
Repeat while "Left" is pressed: set players X to: Player X -1
Repeat while "Up" is pressed: set players Y to: Player Y+1
Repeat while "Down" is pressed: set players Y to: Player Y-1
This means while the arrow keys are being held down the player will move 1 X or Y position.

hope that kinda helps you out, typed it straight out of my head so might be a bit confusing but hopefully you get what X and Y positions are if not this might also Aid you:
http://www.create-games.com/article.asp?id=1315


 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

Arf :: FPP Games



Registered
  15/05/2002
Points
  1364
11th September, 2004 at 11:57:52 -

My custom platform movement works in TGF. It's available here:
http://www.fpp-games.com/tutorials/platform_engine.php

Make sure you have the latest version of TGF. It should be version 1.06. You can download the free upgrade to this version here:
http://www.clickteam.com/webftp/files/11/3/gfupd32.exe

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14560

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
11th September, 2004 at 14:29:22 -

start simple when first making games with custom movement.

you can use the x coordinates to move your player left and right

-1 is left one picel
+ 1 is right one pixel

you can use the y coordinates for jumping

-1 is up one pixel
+1 is down one pixel

i have made loads of basic engines why dont you download one of mine?

 
.

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
11th September, 2004 at 14:43:08 -

www.ectoprods.com/dlgames/cpm2.zip
fully commented.
Any problems, hit u the www.ectoprods.com message boards.
It's also in Pure TGF.

Image Edited by the Author.

 
Craps, I'm an old man!
   

Post Reply



 



Advertisement

Worth A Click