Jump to content


Photo

Dungeon Explorer: Amulet of Power


  • This topic is locked This topic is locked
6 replies to this topic

#1 Neon00

Neon00

    Alpha Games Owner

  • GMC Member
  • 98 posts
  • Version:GM8

Posted 20 June 2012 - 04:08 AM

Dungeon Explorer: Amulet of Power


Category: Maze
File Size:2.22 MB
GM Version: :GM8:
Vista Compatible: yes
Changes Screen Resolution: no
Download Link

Images: Coming soon!
Version Changes-

Spoiler


Edited by Neon00, 20 June 2012 - 04:10 AM.

  • 0

#2 MythStudio

MythStudio

    GMC Member

  • GMC Member
  • 562 posts
  • Version:GM8

Posted 20 June 2012 - 04:47 AM

Decent Not a bad start, i would suggest using the D&D function for Snapping to Grid or the GML version, it will allow the player to move smoother though the maze.

Example Code
//Move snap looks something like this if i am correct
move_snap(32,32)
//Now if your play and game is not set to 32x32 change to 16x16
best of Luck Also i have a idea for changing the view and making it a little bit bigger
by using a torch light style. So that the player can only see as far as the light.
Anyways Great Start
-Mat
  • 1

#3 Neon00

Neon00

    Alpha Games Owner

  • GMC Member
  • 98 posts
  • Version:GM8

Posted 20 June 2012 - 02:55 PM

Thanks for the help! I love the torch idea. Now I'm going to have to incorporate an inventory. I've seen tutorials so It probably isn't difficult.

Edit:My game won't run anymore and it happened right after I put in your code. I'm so glad I haven't saved yet.

Edited by Neon00, 20 June 2012 - 03:08 PM.

  • 0

#4 MythStudio

MythStudio

    GMC Member

  • GMC Member
  • 562 posts
  • Version:GM8

Posted 20 June 2012 - 07:51 PM

Thanks for the help! I love the torch idea. Now I'm going to have to incorporate an inventory. I've seen tutorials so It probably isn't difficult.

Edit:My game won't run anymore and it happened right after I put in your code. I'm so glad I haven't saved yet.

Well im glad you that you hadn't saved, Always backup your game, i will make a example for you with the snap to grid feature so you can just see how to use it:)
Edit 1: Make sure the Player wasn't two close to the wall.

Edit 2: Here's the Example:
Snap to Grid Example GMK
Edit 3: Put in Player Step Event(Remove Previous Movement Setup)
if (!place_snapped(32,32)){exit;}
if keyboard_check(vk_up){direction=90;speed=4;
}else{speed=0;}  
if keyboard_check(vk_down){direction=270;speed=4;
} 
if keyboard_check(vk_left){direction=180;speed=4;
}  
if keyboard_check(vk_right){direction=0;speed=4;
}
No credit is need for the example and code. Just trying to help.
-Mat

Edited by MythStudio, 20 June 2012 - 08:10 PM.

  • 0

#5 Yuotta

Yuotta

    GMC Member

  • New Member
  • 1 posts
  • Version:Unknown

Posted 22 June 2012 - 07:48 AM

How do you then, using this code, get your player animation to switch from Up, Down, Left and Right?
  • 0

#6 MythStudio

MythStudio

    GMC Member

  • GMC Member
  • 562 posts
  • Version:GM8

Posted 22 June 2012 - 09:19 AM

How do you then, using this code, get your player animation to switch from Up, Down, Left and Right?

if (!place_snapped(32,32)){exit;}
if keyboard_check(vk_up){direction=90;speed=4;image_angle = 180;}
else{speed=0;}
if keyboard_check(vk_down){direction=270;speed=4;image_angle = 0;}
if keyboard_check(vk_left){direction=180;speed=4;image_angle = 270;}
if keyboard_check(vk_right){direction=0;speed=4;image_angle = 90;}
Requires Pro!
And the Sprite has to be Centered to work atm..
Ill fix it when i figure it out.
Im new to GML
-Mat
  • 0

#7 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16814 posts
  • Version:GM:Studio

Posted 22 June 2012 - 09:24 AM

Please, post your questions and answers in the appropriate forum... keep this topic for discussing the OP's game as a whole! Posted Image
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users