Maze with patrolling platforms prototype.
Feel free to re mix :)
This is my school project.
"Learn about one topic over the year and present it to my class"
It's loosely based on "Zelda"
moves with arrow keys
Uses weapon with x
jumps with space bar or z
I am going to continue with this in an upcoming year.
Stay tuned :)
Started working on rooms.
This character has states; for walking, idle, jumping, etc...
feel free to re-mix :)
I decided to start a library of scripts to help those transitioning from visual scripting to lua.
You should be able to copy and paste code into your new script object put object in the room and run it with "Crt+R"
If something doesn't work please let me know.
Feel free to ask questions.
Lua scrip to print.
place scrip object in the room.
function draw() boxfill(0,0,63,128,128,63,3) set_draw_slice(120, true) print("printing", 48, 11, 7) print("in voxatron 3.5b", 40, 20, 7) end
This is basic player controllers
control the box with arrows, z and x
x = 64 y = 64 updown = 30 function _update() if (btn(0)) then x=x-1 end if (btn(1)) then x=x+1 end if (btn(2)) then y=y-1 end if (btn(3)) then y=y+1 end if (btn(4)) then updown=updown-1 end if (btn(5)) then updown=updown+1 end end function _draw() clv() boxfill(x,y,updown,x+10,y+10,updown+10,14) boxfill(0,0,63,128,128,63,3) set_draw_slice(50) print("control the box", 33, 10, 7) print("using arrows, z and x keys", 10, 100, updown-1) end
Scrip to change rooms made with "function draw()"
on J and K button press
(It's a flip book to go back and forth between rooms)
thx PROGRAM_IX :)
function _init() state = 0 debounce = 0 end function draw() if(state == 0) then draw_title() elseif(state == 1) then draw_instructions() elseif(state == 2) then draw_monkeys() elseif(state == 3) then draw_apples() elseif(state == 4) then draw_game() elseif(state <0) then draw_game() elseif(state >4) then draw_title() end end function draw_title() set_display_camera(-1) boxfill(0,0,63,128,128,63,3) set_draw_slice(120, true) print(state, 40, 20, 7) print("press j or l", 52, 30, state+15) state = 0 end function draw_instructions() set_display_camera(-1) boxfill(0,0,63,128,128,63,14) set_draw_slice(120, true) print(state, 20, 11, 7) print("press j or l", 52, 30, state+15) end function draw_monkeys() set_display_camera(1) boxfill(0,0,63,128,128,63,24) set_draw_slice(60) print(state, 20, 120, 7) print("press j or l", 52, 30, state+15) end function draw_apples() set_display_camera(1) boxfill(0,0,63,128,128,63,28) set_draw_slice(60) print(state, 20, 120, 7) print("press j or l", 52, 30, state+15) end function draw_game() set_display_camera(-1) boxfill(0,0,63,128,128,63,55) set_draw_slice(120, true) print(state, 52, 20, 7) state = 4 print("press j or l", 52, 30, state+15) end function _update() if(state < 5) then if(btn(7) and debounce > 10) then state += 1 debounce = 0 else if(btn(6) and debounce > 10) then state -= 1 debounce = 0 else end debounce += 1 end end end
This script spawns a player at the position of the entry platform at any room...
function draw() local x,y,z = this:get_xyz() spawn("ROBOT", x,y,z) end
How would i go about, writing a script to change rooms on button press?
I tried to use an old "switch room" script object but it doesn't do what I want.
Switching multiple rooms on a button press, with the same button. Like arrow right to go forward and arrow left to go back.
Hope this make sense.
This level is done by Digital Monkey School student Dhruv with help from Matt and Greg
It was done in the in the course of DMS summer camp :)
Since you have last updated BBC, We have experienced trouble with uploading new cartridges.
Whenever we are trying to upload new Cartridge it tells us "Not a valid cart. Please try again."...
I came across this really cute cart by: SuperPuffeXIV
The grand diamond theft 100
I made some modifications to prevent level from breaking.
locked patrolling enemies on "Y" , made some custom doors and change a window from a breakable prop to a pickup so it breaks faster. Oh and added some FXs to a diamond :)
Have fun :)
You have currency and items that you can buy with it.
This mechanic is from the cart that DMS student Ben is working on.
Hopefully will have actual game to post soon :)
View Older Posts