Jump to content


Photo

Must make sprite go through door with a


  • Please log in to reply
11 replies to this topic

#1 Magick_Cat

Magick_Cat

    GMC Member

  • GMC Member
  • 31 posts
  • Version:Unknown

Posted 16 November 2012 - 12:58 AM

Game Maker8 pro

got the sprite to go through a door however there's a problem the sprite can't use the same door to go back to the first room when It's in the second room

What
I need is a code that makes the sprite go through door1 appears in room2 go through door2 appears in room1 with a fade out also need to know if there's a way to set character sprite in front of door object so sprite will appear in front of door when the screen for room2 appears.

Thanks if you reply.
  • 0

#2 mrpeanut188

mrpeanut188

    GMC Member

  • GMC Member
  • 814 posts
  • Version:GM8

Posted 16 November 2012 - 01:28 AM

Step 1: Transitions
Spoiler


Step 2: Moving between rooms.
Spoiler


Step 3. Player

Create an instance, and place it next to all the doors, outside of the trigger range.
Then move the player to that instance using instance_nearest.

Edited by mrpeanut188, 16 November 2012 - 01:30 AM.

  • 0

#3 pwyskowski

pwyskowski

    GMC Member

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

Posted 16 November 2012 - 03:58 PM

Mods:

Magick_Cat already started two other threads asking this same question.

http://gmc.yoyogames...howtopic=557654

http://gmc.yoyogames...howtopic=558017

Edited by pwyskowski, 16 November 2012 - 05:33 PM.

  • 0

#4 Magick_Cat

Magick_Cat

    GMC Member

  • GMC Member
  • 31 posts
  • Version:Unknown

Posted 16 November 2012 - 10:19 PM

OK I did not explain that good enough first off when I try to put the sprite in front of the door in the room, the door disappears.

secondly my sprite will go through the door but for some reason when my sprite goes through door 1 to get to room 2 the sprite can not use the same door
to go back to room 1.

How to fix this please.

Also thanks if you reply.
  • 0

#5 Magick_Cat

Magick_Cat

    GMC Member

  • GMC Member
  • 31 posts
  • Version:Unknown

Posted 18 November 2012 - 12:54 AM

is there a way to code this so the sprite can use the same door to go to room2 useing door1 and back to room 1 useing the same door

I would like to know how to do this useing the drag and drop icons in game maker 8 pro

Also I do not have Game maker studio and know nothing about it and would like to know if it's any good.

Lastly on my list of things to know slash get what is the dudes Lybary for game maker and is it worth getting.
some one on another thread mentioned the dudes Lybary and posted a hyper link to get it but tg he hyper link did not work need to get that.

But most importantly I need a code to make my sprite go from room 1 to room 2 and useing the same door go back to room1.

Thanks if you reply and just letting you know I'm not trying to be rude to you the reader it's just that I think that there should be a way to do this with the drag and drop Icons, thanks again.

Oh and thanks MR mrpeanut188 your post would be most helpful if I understood it but I do not especially the first part of your post

0 = no effect
1 = Create from left
2 = Create from right
3 = Create from top
4 = Create from bottom
5 = Create from center
6 = Shift from left
7 = Shift from right
8 = Shift from top
9 = Shift from bottom
10 = Interlaced from left
11 = Interlaced from right
12 = Interlaced from top
13 = Interlaced from bottom
14 = Push from left
15 = Push from right
16 = Push from top
17 = Push from bottom
18 = Rotate to the left
19 = Rotate to the right
20 = Blend the rooms
21 = Fade out and in


Then set variable transition_kind to that number to set the transition.

???? where do you get any of that is that in the dudes Lybary or something?

Oh and the second part of your post made sense to me but when I put it into game maker the code did not respond to anything for some reason.
And lastly I understood that step 3 part so thanks and If I ever figure out any of the rest of this I'll let you know.
  • 0

#6 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 20936 posts
  • Version:GM:Studio

Posted 21 November 2012 - 09:59 PM

Mods:

Magick_Cat already started two other threads asking this same question.

http://gmc.yoyogames...howtopic=558017

http://gmc.yoyogames...howtopic=557654


True... They have now been closed. In future Magic_Cat, don't post multiple topics, just add information to the original please...
  • 0

#7 Magick_Cat

Magick_Cat

    GMC Member

  • GMC Member
  • 31 posts
  • Version:Unknown

Posted 25 November 2012 - 09:17 AM

Thanks I have the game to were My sprite will go to room 2 useing door1 how ever I got to make it to were if you press up that the sprite gos to room 2 only
if in front of a door?

Also I need a code that is compatible with this if place_meeting(x,y,object5)
{
mydoor=instance_place(x,y,object5)
{
global.enterx=mydoor.myx
global.entery=mydoor.myy
room_goto(mydoor.myroom)
}
}
Also there's drag and drop block that is the room 2 fade to black, and back and thats what I've tried so far.
also I need my sprite to go back into room 1 from room 2 useing door 2

If you help than thanks.
  • 0

#8 Magick_Cat

Magick_Cat

    GMC Member

  • GMC Member
  • 31 posts
  • Version:Unknown

Posted 02 December 2012 - 08:11 PM

I posted above the code I was useing to make my sprite go thru doors.
However the code does not go back thru the same door to get to room 1 when the sprite is in room 2.

Please help the sprite must only go through door when you press up in front of door.

Thanks if you help.

I need a code for this

Please were can I get a copy of the dudes lybary.
  • 0

#9 Futhark

Futhark

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

Posted 14 December 2012 - 04:37 PM

...Please were can I get a copy of the dudes lybary.


Check out the official thread for the answer to that question:
http://gmc.yoyogames...howtopic=454976
  • 0

#10 Magick_Cat

Magick_Cat

    GMC Member

  • GMC Member
  • 31 posts
  • Version:Unknown

Posted 15 December 2012 - 01:41 AM

I'm Making a Game on Game Maker 8 Pro

I need a Video tutorial
for how to make a Mario Door as in press up in front of door and you go to the next room actually I got that part figured out what
I need help with is making the sprite go back to the first room as in press up in front of door1 goto room2 press up in front of door2 goto room1

I'm asking for a video tutorial so I can see how to do this please.
  • 0

#11 Musicvan

Musicvan

    GMC Member

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

Posted 27 December 2013 - 05:28 PM

ok if this chat isn't over I will help


  • 0

#12 Musicvan

Musicvan

    GMC Member

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

Posted 27 December 2013 - 05:30 PM

in the collision event write

if keyboard_check_pressed(vk_up)

and then write your code here


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users