cuccoscratch.com
May 24, 2012, 10:36:34 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Help with Views in Gamemaker  (Read 711 times)
0 Members and 2 Guests are viewing this topic.
Feu
Cucco Army
Prinny
*
Offline Offline

Posts: 1824



View Profile
« on: December 03, 2007, 12:17:53 am »

I'm in and introductory course to game design and we're using Gamemaker.

If anyone has decent experience with the program, I'd really appreciate some help with my final project for class. <.<;

Basically, I need to have this GIANT room for one level, but I only want a defined area of it showing at any one time. As it is, it tries to scrunch the 10,000 pixel room  into a 650 pixel wide window. 

That obviously detracts from the aesthetics of the game thus far.

I think I need to play with something in "Views" in the room settings but I'm struggling to figure out what exactly. Trial and error is getting me nowhere.

I've checked online for tutorials but I can't find what I need.


If no one knows, that's ok too. It's not like I don't have several thousand frames of sprites to create from scratch before asking classmates on Tuesday.


x_X
Logged

MAGNUS-8M
Piplup
****
Offline Offline

Posts: 831


Damaged, Deactivated


View Profile WWW
« Reply #1 on: December 03, 2007, 12:48:36 am »

Huh, I have the Shareware version, lemmie see.

I dunno.  I think it's a matter of setting the room size, view size, and view-origin.  Is it really 10,000 pixel?  That's not the height AND width is it?  Hrm.

Well, let's see.  I'll go ahead and create a 10,000 x 10,000 room.  That's in the 'Settings' tab of course.  Now on to views...

Okay, I'm checking both 'Enable the use of Views' and 'Visible When Room Starts'.

Settings are default.


Ok, it appears to work just like that: default for me was View in Room: X: 0 Y: 0, W640 H480, and same for Port on Screen, X: 0, Y: 0, W640 H480.

It started at the upper left corner.  I also set the room-view to follow the sprite-object I created, and I laid down some other sprites so I'd know when I moved, and where it went(and then I set some key-press movement to that first object so that it would move).  The only bad part that I saw was that the room followed the view only when the object touched the side of the room -- ok, that's a whole different setting(it's on the 'Follow Object' section in the View Tab).


Hope that jarblish helps, I don't know if I typed that in a logical sense, but feel free to bug for clarifying.. >_>;
Logged

Feu
Cucco Army
Prinny
*
Offline Offline

Posts: 1824



View Profile
« Reply #2 on: December 03, 2007, 01:05:13 am »

Thank you *sooo* much.

I really appreciate your help and the time you took to check it all out and post.


As for the character running into the end of the screen in order to make it start scrolling-- that's easily fixed by adjusting the horizontal (and if you want, vertical) border(s), the two left fields at the bottom of the views tab.
150-200 seems about right for my window size and environment.



Thank you!
Logged

MAGNUS-8M
Piplup
****
Offline Offline

Posts: 831


Damaged, Deactivated


View Profile WWW
« Reply #3 on: December 03, 2007, 01:10:33 am »

Yeah, I set it to 100 x 100 real quick and it seemed to work pretty good...not that I needed to, but I was curious to make it work.  It was just a burger flying amongst piles of money anyway ... didn't make sense, but was good enough as a test anyway. :p


And no prob, I like to mess with that stuff when I get a chance, but half the time I don't think about it.  I wish I'd mess with my RMXP(RPG Maker XP) more often tho' --- THAT one I actually bought and payed for, but haven't used very much since.  x_x;
Logged

Feu
Cucco Army
Prinny
*
Offline Offline

Posts: 1824



View Profile
« Reply #4 on: December 03, 2007, 01:20:29 am »

My object was a demon girl.  She has to find her way through a crumbling castle to find her kidnapped demon sister in this level.

Cliché, but it's due in like one and a half weeks and... yeah. ._. I had to make some kind of storyline around my demon girl sketches.   ....I'm thinking it would have been much more fun with mermaids. <.<;;;

Oh, and the room's only about 8000 pixels wide right now...  And like 2000 tall.  We'll see where it goes from there.

If all goes well, I could send people a copy of the exe to play. We'll see. I'll let my real life siblings test it out first before committing to that.

Logged

MAGNUS-8M
Piplup
****
Offline Offline

Posts: 831


Damaged, Deactivated


View Profile WWW
« Reply #5 on: December 03, 2007, 01:41:26 am »

Yeh, mermaids would have been interesting... eh, I might want to see the finished version..

It's been a long time since I've tried to make ANYTHING with Gamemaker...I just couldn't get the hang of it cuz I was so used to RMXP/RM2k.  The farthest I'd gotten in using it was making a test room and a little guy in a platforming situation....but the jump-mechanic was screwed up, and half the time, the collision detection made the guy *stick* to the floor occasionally, making it difficult to run to the left or right, then getting stuck in the floor-sprite, especially when falling down onto the floor, let alone when it was from a jump action.  I gave up since I couldn't even get that far just in testing the platforming mechanics.  x_x;
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

© 2007-2011 cuccoscratch.com and their respective authors. All rights reserved.
Hosted by Bluespider Technical Solutions