The Daily Click ::. Forums ::. Klik Coding Help ::. scrolling in knp (again, lol)
 

Post Reply  Post Oekaki 
 

Posted By Message

Deleted User
21st September, 2003 at 13:47:45 -

Hey!!!!! Can anyone who replies to this post please tell me a way to scroll in knp if not then just well... whatever i just need a smooth scrolling engine for my game Megaman Black.

 

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
21st September, 2003 at 13:50:44 -

Make everything active objects, and move them instead of the player.

 
gone fishin'

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
21st September, 2003 at 13:53:18 -

I un abashedly point you to my article
http://www.create-games.com/article.asp?id=650]
and also, I will be updating it soon with some new Techniques.

 
Craps, I'm an old man!

Kramy



Registered
  08/06/2002
Points
  1888
21st September, 2003 at 13:58:08 -

Download TGF, or have it so objects are positioned x + 1 or x - 1 from themselves when you hold right/left.

 
Kramy

Metal Maiden



Registered
  10/09/2002
Points
  900
21st September, 2003 at 16:02:03 -

I pulled it off very roughly in Spanky the Buttweasel 2, but that was for one stage only

 
Death in the air
Strapped in the electric chair
This can't be happening to me
Who made you God to say
"I'll take your life from you!!"

Deleted User
21st September, 2003 at 16:13:48 -

Hey Kramy for the x+ whatever system i tried that but its not perfect cuz when my little active object character crashes into the active platforms he either gets pushed to the opposite side of the platforms or he goes through them. Whats up with that?

 

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
21st September, 2003 at 16:18:27 -

You need to add in a command (while player is not colliding with platform)+User presses etc etc. But you can't do that in KnP because it doesn't support the negate feature. When I get home later, I'll open up my old projects and tell you guys the solution for this.

 
Craps, I'm an old man!

Kramy



Registered
  08/06/2002
Points
  1888
21st September, 2003 at 16:22:20 -

I highly suggest getting TGF. It's capabilities are MUCH higher than those of KnP. It will make difficult/impossible things easy, and allows many new features.

 
Kramy

Linus Software



Registered
  03/01/2002
Points
  10
22nd September, 2003 at 16:01:32 -

See if you can get a copy of "Mr. Malibus" by Zellix (I think that was his name! ). Open the game and learn! His scrolling engine is in KNP, and is PERFECT (And so is the game!).

 
n/a

Deleted User
22nd September, 2003 at 16:54:45 -

is the game malibus old or new?

 

Jimmy Brzezicki



Registered
  16/09/2003
Points
  1057
23rd September, 2003 at 07:23:31 -

Having used KnP for many years I found a few solutions. First, make all the platforms active, and put your character (they can be on regurlar platform movement) in the middle of the screen. Thn say that if Xcharacter>half the width of the play area + about 10 pixels set x coordinates of the platforms to their own x coorinates - about 4 pixels, and move your character back in the same way (Xcharacter-4). Do this for both directions and the Y axis and you have a platform engine. You don't need to wrorry about not scrolling when the character collides; just tell the collisions to stop the character and it'll work. But beware; if the platforms go too far off the screen they'll auto-delete, so you'll have to make the levels quite small.

 
Why the hell am I on the computer at 1 in the morning? No, don't answer.

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
23rd September, 2003 at 07:48:13 -

It's tricky as TGF has no negate.

 
gone fishin'

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
23rd September, 2003 at 10:54:35 -

You mean KNP.

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
23rd September, 2003 at 12:13:55 -

Yea, TGF has negate, but knp doesnt, because its so old and bob.

 
My signature is never too big!!!
   

Post Reply



 



Advertisement

Worth A Click