Jump to content


Occams_Solution

Member Since 25 Feb 2012
Offline Last Active Feb 27 2012 05:57 PM

Topics I've Started

Background & inventory!

26 February 2012 - 04:28 AM

Hello!

Im going to put two of my problems in here rather than create two topics, itll clutter up the site less :)

First: My background. My game is set in a cave/cavern/underground place and i want the back wall to remain stationry to the world, not to my view. ive tried and scoured the forums but i cant find a case like this D:

Second: Ive got it so that i can place torches. they even have nice lighting :D but i want to be able to have some sort of block selection. This is the code i hoped would work...

if (mouse_check_button_pressed(mb_right))
    {
     if (global.selecteditem) == 1 action_create_object(o_dirt,mouse_x-12,mouse_y-12)
     if (global.selecteditem) == 2 action_create_object(o_grass,mouse_x-12,mouse_y-12)
     if (global.selecteditem) == 3 action_create_object(o_block,mouse_x-12,mouse_y-12)
     if (global.selecteditem) == 4 action_create_object(o_water,mouse_x-12,mouse_y-12)
     if (global.selecteditem) == 0 action_create_object(o_torch,mouse_x-12,mouse_y-12)
    }

that was in my step event for my mouse control.
and this...

global.selecteditem=0

is in the create event of it.
Sadly this time my namesake didnt help :P
thanks for any and all help and i look forward to hearing

Occam.