Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: I need help coding...  (Read 2351 times)

0 Members and 1 Guest are viewing this topic.
I need help coding...
« on: June 13, 2012, 03:53:18 am »
  • Make your best move ass-bite!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 139
Okay so I have this code:
Code: [Select]
if global.indungeon=0{
vx = view_xview[0]
vw = view_wview[0]
vy = view_yview[0]
vh = view_hview[0]}

-This code sets the boundaries for the view to stay in, for scrolling purposes.
-The view size is 160x128
-"global.indungeon" is a variable that determines whether you're in a dungeon or not.

The problem is that I want to make it so when you are in a dungeon, the rooms are 240x176 and the view can move inside these boundaries, but I have no idea how I would set that up... any help?
Logged

DaSpirit

The Quiet
Re: I need help coding...
« Reply #1 on: June 13, 2012, 02:48:23 pm »
  • The Mad Programmer.
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 87
I don't really understand what you want. Care to elaborate more?
Logged
I support:
Re: I need help coding...
« Reply #2 on: June 13, 2012, 04:11:02 pm »
  • ...---^^^---...
  • *
  • Reputation: +6/-0
  • Offline Offline
  • Gender: Male
  • Posts: 616
Are you using Game Maker?  If so why don't you just set the size of the room when you make the rooms for the dungeon?  Or perhaps you mean you want the view to be 240x176?
Logged
Re: I need help coding...
« Reply #3 on: June 13, 2012, 04:16:46 pm »
  • Yeah, I don't even...
  • *
  • Reputation: +11/-4
  • Offline Offline
  • Gender: Female
  • Posts: 1008
Are you using Game Maker?  If so why don't you just set the size of the room when you make the rooms for the dungeon?  Or perhaps you mean you want the view to be 240x176?
You mean 256x176(Minish Cap Size)
or is what your saying for Lttp style;
Logged

DaSpirit

The Quiet
Re: I need help coding...
« Reply #4 on: June 13, 2012, 05:13:40 pm »
  • The Mad Programmer.
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 87
It appears that you are using GameMaker.

If you simply want to move the view to center the player, you can simply do something of the sort:
Code: [Select]
view_xview[0] = obj_player.x - 160/2;
view_yview[0] = obj_player.y - 128/2;
Logged
I support:
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.04 seconds with 47 queries.