Jump to content


Photo
- - - - -

Platform Engine 1.12 - NJP


  • Please log in to reply
20 replies to this topic

#1 njp

njp

    Panda

  • GMC Member
  • 2342 posts
  • Version:GM8

Posted 11 June 2011 - 05:58 PM

over 1000 downloads! :)
Features:
-Clean, smooth and precise platform engine.
-Basic shadows behind objects.
-Using friction and momentum.
-No scripts, just basic simple gml used properly.
-Fully commented.
-Version 2 will have slopes!
Screenshot:
Posted Image

There is the way to do things, there is the right way to do things and there is the best way to do things. This platform engine has all 3 of those. Showing the most simple yet advanced method of achieving flawless platforming in gm8.0 and up! Fully commented and completely flexible. Just download it and see, i guarantee this is one of the best examples. You dont have to give credit but it is appreciated.


Thanks for downloading and please comment!
~NicJamesPanda

EDIT:
Can someone please check to see if the gm6 actually works in gm6+. because it should work since i converted it with LGM. but im not sure if the transperent sprites transfered over properly. If it isnt working it would be greatly appreciated if someone could fix the sprites and upload them. Thanks :)

Edited by njp, 28 November 2011 - 06:52 PM.

  • 1

#2 C_Pike

C_Pike

    GMC Member

  • GMC Member
  • 618 posts
  • Version:GM8.1

Posted 13 June 2011 - 04:46 PM

Looks great and runs even better! (I like the no-script approach)
I am very much looking forward to your updates.
  • 0

#3 njp

njp

    Panda

  • GMC Member
  • 2342 posts
  • Version:GM8

Posted 14 June 2011 - 12:59 AM

Looks great and runs even better! (I like the no-script approach)
I am very much looking forward to your updates.


thank you (: i was hoping to get more comments on this though.
i was sure the cute puppy would bring in some feedback Posted Image

~Nic
  • 0

#4 Boudoudou

Boudoudou

    GMC Member

  • GMC Member
  • 161 posts

Posted 14 June 2011 - 02:42 PM

Great work here !
  • 0

#5 njp

njp

    Panda

  • GMC Member
  • 2342 posts
  • Version:GM8

Posted 16 June 2011 - 07:44 AM

Great work here !


Thank you :)
  • 0

#6 cheeserules

cheeserules

    GMC Member

  • GMC Member
  • 570 posts

Posted 18 June 2011 - 03:19 AM

This is great! I'm using it as a guide to iron out the bugs in my code. Very efficient.
EDIT:
The only thing I'd suggest is that you change the place_frees to not place_meetings. Not everyone's going to be working with only two objects.

Edited by cheeserules, 18 June 2011 - 03:23 AM.

  • 0

#7 Water Chicken

Water Chicken

    Got it memorized?

  • GMC Member
  • 1207 posts
  • Version:GM:Studio

Posted 18 June 2011 - 03:46 AM

Other than it not having variable jumping, it's a pretty nice engine.
I'd suggest adding some basic enemy A.I. to it, like the Goomba's or the red Koopa Troopa's from SMB.
  • 0

#8 beeproductions

beeproductions

    Helping gmc users

  • GMC Member
  • 1316 posts
  • Version:GM:Studio

Posted 18 June 2011 - 05:55 AM

You got a nice and smooth engine here mate.Good Job!

Also I see you got quite familiar with RealDraw!(I saw the sig).
  • 0

#9 njp

njp

    Panda

  • GMC Member
  • 2342 posts
  • Version:GM8

Posted 18 June 2011 - 06:39 AM

You got a nice and smooth engine here mate.Good Job!

Also I see you got quite familiar with RealDraw!(I saw the sig).


Thanks :)

and nope, im sticking to photoshop, illustrator, fireworks ;) im just used to the adobe suite so i might as well just use it.
  • 0

#10 njp

njp

    Panda

  • GMC Member
  • 2342 posts
  • Version:GM8

Posted 08 November 2011 - 12:54 PM

I've uploaded this elsewhere for everyone since upurload is gone.

This is the original engine, I've just added variable jumping and some
code for outlining objects (only used for the blocks here).

Platform Engine 1.12 - NJP Download

thanks i add this to the first post :)

:D :33

-Nic


  • 0

#11 Gioku

Gioku

    GMC Member

  • GMC Member
  • 195 posts
  • Version:GM7

Posted 08 November 2011 - 04:41 PM

I'll have to check this out! It could be helpful with the platform shooter I'm making! I'll let you know how it goes...
  • 0

#12 Gioku

Gioku

    GMC Member

  • GMC Member
  • 195 posts
  • Version:GM7

Posted 09 November 2011 - 01:35 AM

Oh, man! I thought it was supposed to work with :GM6: and up..... I have :GM7:, so it doesn't work.... :(
  • 0

#13 njp

njp

    Panda

  • GMC Member
  • 2342 posts
  • Version:GM8

Posted 09 November 2011 - 03:42 AM

Oh, man! I thought it was supposed to work with :GM6: and up..... I have :GM7:, so it doesn't work.... :(


upgrade to 8 :) if you really want i can convert it to gm7 for you.
  • 0

#14 Gioku

Gioku

    GMC Member

  • GMC Member
  • 195 posts
  • Version:GM7

Posted 10 November 2011 - 02:30 AM


Oh, man! I thought it was supposed to work with :GM6: and up..... I have :GM7:, so it doesn't work.... :(


upgrade to 8 :) if you really want i can convert it to gm7 for you.

It would be much easier for me if you converted it to 7. ;)
  • 0

#15 njp

njp

    Panda

  • GMC Member
  • 2342 posts
  • Version:GM8

Posted 11 November 2011 - 09:40 AM



Oh, man! I thought it was supposed to work with :GM6: and up..... I have :GM7:, so it doesn't work.... :(


upgrade to 8 :) if you really want i can convert it to gm7 for you.

It would be much easier for me if you converted it to 7. ;)


inbox it to me
  • 0

#16 NicroGames

NicroGames

    GMC Member

  • GMC Member
  • 300 posts
  • Version:GM:Studio

Posted 12 November 2011 - 01:06 PM

Very nice!
But i found one weird problem: You can't jump while running left and pressing space at the same time.

Nicro

Edited by NicroGames, 12 November 2011 - 01:29 PM.

  • 0

#17 anthPerri

anthPerri

    GMC Member

  • New Member
  • 11 posts

Posted 28 November 2011 - 01:55 AM

This is great for what I\'m doing and much simpler than the last example I tried out. When do you think Slopes will be in? Can\'t believe you\'re going to make a Drag and Drop version, when do you think that\'ll be ready because for me, that would be ideal.

Thanks for this!
  • 0

#18 Brock Lee

Brock Lee

    GMC Member

  • GMC Member
  • 22 posts
  • Version:GM7

Posted 15 January 2012 - 05:27 PM

Love it a lot, this might be asking for a lot but is it possible to make it where the player can jump off walls?
  • 0

#19 _244322

_244322

    GMC Member

  • New Member
  • 1 posts

Posted 26 January 2012 - 08:17 AM

Actually I find a little bug, when you tap up button quickly when you falling, your falling speed decreasing.
You can fix this bug by changing the script on step event.

if keyboard_check_released(vk_up) then
{
vspeed/=3;
}

change it into

if keyboard_check_released(vk_up) and vspeed<0 then
{
vspeed/=3;
}

And sometimes you can stuck on wall. To fix this change the script from step event.

//Sets up what the buttons do
if keyboard_check(vk_left) and place_free(x-1,y) then hspeed-=player_speed
if keyboard_check(vk_right) and place_free(x+1,y)  then hspeed+=player_speed

into

//Sets up what the buttons do
if keyboard_check(vk_left) then hspeed-=player_speed
if keyboard_check(vk_right) then hspeed+=player_speed

Anyways, I'm love your script because it's simple and neat. (Whenever I tried to create own engine it turn into bloody mess)
PS: Sorry if my english bad.

@brocklee add this to your code if you want walljump
//Wall jumping :D
if keyboard_check_pressed(vk_up) and (!place_free(x+1,y) or !place_free(x-1,y))  then
{
vspeed=jump_speed*2/3; //or you can change your jump speed. 
}

Edited by _244322, 26 January 2012 - 05:06 PM.

  • 0

#20 njp

njp

    Panda

  • GMC Member
  • 2342 posts
  • Version:GM8

Posted 29 January 2012 - 02:40 AM

havent checked back to this topic in a while, if those are still in need of a drag and drop version i could fix one up in the next few weeks, working full time leaves me almost no online time, and yes ill update the code here and there to solve some of the issues stated above. many luck with your games! Posted Image
  • 0

#21 tari_minyatur_dw

tari_minyatur_dw

    GMC Member

  • GMC Member
  • 96 posts
  • Version:GM8

Posted 16 February 2012 - 07:29 AM



Oh, man! I thought it was supposed to work with :GM6: and up..... I have :GM7:, so it doesn't work.... :(


upgrade to 8 :) if you really want i can convert it to gm7 for you.

It would be much easier for me if you converted it to 7. ;)

If you converted it to 7 can you be so kind as to send me the link? Thanx!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users