TechZ2124 - Adventure level - from Android
PlayEdit26 players liked this.Log in to like this level.

Just for fun.

The LUA Scripts are from "LOOK OUT ROBOT!!!!", I just modified them and created the Outfits.
The LUA Fire is from jammer312.

Update 1 :
Add ZardOz's code.

Update 2 :
The Outfits now reverse when the robot changes direction.

Hope you like it !

Views: 4716 Downloads: 2017 Unique objects: 15 Total objects: 104


Discuss this level

Log in to comment on this level.
  • keeghan: @zardOz: it works, thanks.
  • zardOz2: @keeghan: change this:set_draw_z(.4) to like 1.4 or something... it's between 1 and 2 you might have to play with it
  • keeghan: @TechZ: how I make the outfit to layer 2?
  • keeghan: @TechZ: Is it ok I use your lua code for outfit for my platform climber?
  • zardOz2: @keeghan: see the level "pimp my breadboard" the breadboard Id can be swapped for a different Id#... you will need to adjust the draw depth(z) because different objects have different depths
  • keeghan: @TechZ: how I get a outfit to a plank?
  • jammer312: Ahh, that. I'm busy for now, but in 2-3 hours will have free time.
  • Golden: You just said it at my level "RELEASED luamaster"
  • jammer312: I can't help you until I'll know what do you need
  • jammer312: What need I to do?
  • jammer312: And?
  • Golden: 2 users joined my site
  • Golden: @jammer312: i need your help on my new website
  • jammer312: Just somewhere in the code override angle or similar var(can't remember how it named) to math.pi/2
  • jammer312: You could also want to not use angle to calculate direction of fire.
  • Golden: Idea: dressing room
  • zardOz2: Anottherr problem with get velocity is that it draws the positon backwards if gravity is reversed. and is off center. The off center stems from the aby+In1*1.5 for the robo indicator... wouuld require a pattarn redesign tho and a bunch of tests.
  • zardOz2: Nice improvemnt, but it's non functional iff the robot is moving with assistance from a vehicle or conveyor or other method. Maybe the update will have another method besides getvelocity.
  • mbrine: Lol i didn't know it was possible to do that
  • zardOz2: Yep no problem, big improvement!
  • TechZ2124: @zardOz: Thanks man, works awesomely better now ;)
  • zardOz2: TechZ, I posted the reduced lag code for the Blue robot on the forum. I removed the In2 and In3 stuff, move the jumper to In1 and copy all but the pattern for the other robots.
  • Rubicon2: Very cool
  • Golden: @TechZ: mirror code,
    if obj:get_velocity() >= 0.1
    For forward robot
    If obj:get_velocity() >= -0.1
    For backward robot
    Obj or robot ,etc
  • Golden: Also please add color changer outfit and itwould be awsome!!!
  • Golden: Hm try publish that lua and i try to find solution
  • zardOz2: @golden: z isnt preset, you would need a ccode like x,y,z = robot:get_position() to define what z = as far as I know there is no code to find an objects layer
  • Golden: Oops i mean
  • Golden: @zardOz: what about this code
  • zardOz2: There is no fix for this currently inside the lua, the look out robot code cannot be used for multilayer robot skins. It would be possible with many sensors constantly reporting which layer the robot is on, but it would be a mess.
  • Golden: @jammer312: ya i preatty good at minecraft server and i hosted but i give you my server ip address
    It can handle 2000 users with command blocks enabled
  • Golden: Fix the lua, when i layer the robot up, it takes off the outfit
  • Golden: Nice
  • sdac: this level is very cool and a fun concept, but it has some performance issues. You should minimize calls to set_sprite_texel as much as possible, preferably you set up the texture inside an if this:first_run(), once it is set up you can call draw_sprite however much you want, and optionally change colors later by adjusting the tint. Calling set_sprite_texel every frame severely impacts performance because it invokes a transfer from CPU RAM to GPU RAM. Also, you are calling draw_sprite nested inside the two loops, so the sprite is actually rendered once per texel (only needs to be rendered once after the texture is set up).
    You can flip a sprite horizontally by swapping arguments 6 and 8 of draw_sprite.
  • zardOz2: Ahh, cool. @TechZ: the only problem I had with tthis code for robot skins was if it gets wedged under something the skin will float above the leaning robot. it will work still with gravity changes though.
  • TechZ2124: @jammer312: @zardOz: Thanks guys, if I could help you at building a Multi-Player game this would be really cool ;) I am not a LUA boss but I can build some electronics or landscapes.
  • jammer312: ZardOz: the trick is that we don't need to host server:). We use simple free host with php(I'll use hostinger.ru), make database, responce php scripts and ta-daa!
    Lua will send request to site script, get response and do something. Tried to do it with minecraft server, but I'm too lazy)
  • zardOz2: Im up for it, I cant host the game but I have a hundred games in my head, ready for ya;)
  • jammer312: Hey zardOz: let's make multiplayer game when 1.4 update will come? I can make serverside support and sync, you: principia stuff.
  • jammer312: But now it looks like moonwalk.
  • zardOz2: Or on a conveyor or backed against something... best bet is a symmetrical design until there is adventure bot feedback codes
  • zardOz2: Jammer, I tried to to a direction change code but is rife with errors and unreliable. It is possible to change directions without actually moving, like if you jump right and land facing left finding velocities and such wont work.
  • jammer312: Yep,now it looks normal. But l still suggest mirror image when robot changes direction
  • TechZ2124: @jammer312: I think it's okay now ;)
  • jammer312: Only I want is to make it realistic. Outfit must not make fire visible. It must emit fire. Fire will last visible even after outfit changed and will disappear only after it extinguishes
  • jammer312: your*
  • jammer312: Tech: I said "remove yout hiding fire". Yep, now it's stop emitting, but it also disappears.
    Another example: it's like car with turre: when you fire out of turret, it fires normally, but when you change to driver, all bullets disappears. When you switch again back, some of bullets can still fly and re-appear.
  • zardOz2: Nice job, "look out robot" was originally going to be a new skin board for robot, but the inability to detect the level position made me give up... I like the blue one.
  • TechZ2124: @jammer312: Ok thanks dude, ill correct fix that ;)
  • jammer312: Btw I like outfits. Some changes like getting velocity, and calculating angle and velocity of robot getting direction it moves and change outfits to look in that direction
  • jammer312: That's how what you used to hide fire looks
  • jammer312: It will prevent spawning new fire particles.
    It's like you make gun(with real mines in Principia) that show mines only when it shoots. At any other moment mines are invisible.
  • jammer312: Tech I getting angry with that. EVERYBODY MAKE IT WRONG! Remove your change (hiding fire), then find line if spra < 500 or something and after 500 write "and this:read([yourinputforhifingfire]) == 1"
  • TechZ2124: Please LIKE and Comment !

LEVEL ID: 2458