The Daily Click ::. Forums ::. Klik Coding Help ::. Could anyone help with cpe(Custom Platform Engine)
 

Post Reply  Post Oekaki 
 

Posted By Message

Jirru (Fake "0" Productions)



Registered
  29/11/2002
Points
  1802
28th May, 2003 at 23:21:35 -

Could someone help me with it? I am working on a game and I found out some really big bugs I can't fix and some features i am lacking. Help would be aprecciated.

Here are the features i need:
Wall jump( If helped then I will be very glad.)
Combo Attack(I really needed this)
Enemy AI(This is the most important part of a good game.)

Here are stuff that I am lacking:
Jump(I really need help on custom jump)


Ok! These are just some things that I can think of right now so if aanyone could help me with some of them, I would realy be glad!

 
n/a

Pyro



Registered
  22/05/2003
Points
  110
29th May, 2003 at 02:09:42 -

You kinda need to specify what you are talking about. Like what you want the AI to do, and what program you are working with.

 
n/a

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
29th May, 2003 at 03:03:12 -

Hey pyro are you off Zeldapower?? anyway sorry there bud i cant help ya, Platform movements is also what i suck at.

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

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
29th May, 2003 at 03:59:01 -

For the enemy A.I for a basic patrol using bouncy ball movement, set the enemie's movement to bouncy ball and restrict thier directoins to left and right. Then create two objects one with a right arrow and one with a left arrow.

On each side of the Enemy place one of the arrows. On the Left side put the arrow going right and for the right side vice versa. It should look a little like this:

> * <


* = Enemy

Then in the code:

If enemy collides with right detector (the one on the left in the diagram) set enemie's direction to right. Then do the opposite for the left detector.

That is for a simple patrol movement. Then you can add things like, if player is 10 pixels away from enemy - Attack! If you want a custom one that allows enemies to go down hills or jumping/gravity for A.I, just ask.

Jump
For the jumping in custom movement alot of people have trouble making the jump look affective. This is because there is no gravity effect. The player goes up as fast as he comes down. This should not be the case.

For a gravity jump do this:

Player pressed "jump" - Add 3 to player.alt a.

If player is not overlapping backdrop (or any other floor object) - Subtract 1 from alt a.

Always - set player.y to player.y - player.alt a.

Player collides with background - set player.alt a to 0


This is a jump with gravity, to change the jump height edit the 3. I think it should work but it's off the top of my head so, email/Dcmail me if it doesn't.

I think i'll write an article on "Cpm" and make a tut pack.

-Andy



 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Pyro



Registered
  22/05/2003
Points
  110
29th May, 2003 at 20:13:40 -

Nah Ive never even heard of zeldapower, CrystalClear.

 
n/a

Jirru (Fake "0" Productions)



Registered
  29/11/2002
Points
  1802
29th May, 2003 at 21:27:00 -

I'm Okay with the jump now, but the ai is too simple. And it doesn't stop for a while. I wanted an AI like the enemy moves a bit and in a couple of secs it stopped to look around. And if the player got close and the enmy sees the player then the enemy chase the player. You got it?

 
n/a

kyle johnsone



Registered
  29/05/2003
Points
  3
30th May, 2003 at 01:22:15 -

if you are using TGF,look at the ZEB example.
It should give you a Idea. that's what I did.

 
Meh, moh, MOO!

Jirru (Fake "0" Productions)



Registered
  29/11/2002
Points
  1802
30th May, 2003 at 15:41:03 -

Nah! I'm using mmf now, and zeb's cpm is what Assult andy told me. I need more better enemy AI. Could anyone help?

 
n/a

Jirru (Fake "0" Productions)



Registered
  29/11/2002
Points
  1802
30th May, 2003 at 19:04:34 -

wait a minute!!! The jump doesn't work! I can't lift the player off the ground! Please do another custom jump please!

 
n/a

Jirru (Fake "0" Productions)



Registered
  29/11/2002
Points
  1802
30th May, 2003 at 19:43:40 -

I'll give anyone the first beta for my game if they could help me at least two of my lacking. PLease someone...

 
n/a

Jirru (Fake "0" Productions)



Registered
  29/11/2002
Points
  1802
1st June, 2003 at 16:15:43 -

Could someone help me? ITs been 3-4 days already! Com'on guys! Help me!

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
1st June, 2003 at 19:00:55 -

here is a small (VERY) tutorial on jumping the way i do it
http://www.geocities.com/algamesuk/tut.zip

(you need to paste the link into your address bar)

 
.

Jirru (Fake "0" Productions)



Registered
  29/11/2002
Points
  1802
3rd June, 2003 at 16:07:24 -

thanks! Its very hard to understand without comments though, thats a great engine thanks! But I need to study it more to use it.

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
3rd June, 2003 at 16:37:19 -

Speaking of custom movements... I'm aslo making a platform game, and I want to know how you can do a double jump and other stuff.
Other stuff includes something like jumpoing, doing a bounce attack, then if you keep pressing a certain button, you can keep bouncing, so you can bounce al the way to bouncy bouncy land and have a jolly good time with bouncy man

 
My signature is never too big!!!

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
3rd June, 2003 at 16:39:14 -

i forgot to mention this:

Bouncy land is not real, and if you try to bounce there, you will not find bouncy man, becuase he isn't real either. So don't go looking for him, becuase you will only be disapointed (trust me, I know becasue I tried.)

 
My signature is never too big!!!
   

Post Reply



 



Advertisement

Worth A Click