Lua Experiments: Lightning Cannon 1.2

Demon666 - Custom level - from Android

This level is locked.


Discuss this level

Log in to comment on this level.
  • wassup: @Demon666: Please unlock the level!
  • austin_knauss: @Demon666: Unlock this please?
  • dannyz_kingdomz: Why this level is locked? @Demon666
  • flog22: @Demon666: Awesome! :-)
  • Demon666: @flog22: lmao...go for it that's what this is for.
  • flog22: This + Car = ·O·
  • Demon666: @zardOz: as long as I don't have to many running at the same time then it shouldn't lag. I plan to auto absorbed the lua sensors as well as the robot/vehicle that they are connected to once the health bar hits zero.
  • zardOz2: Each lua adds lag by itself, it adds up pretty quick with many of them
  • Demon666: @zardOz: I did have an idea to use other lua script objects as a damage sensor/lifebar. that way I can multi-emit an unlimited number of objects with each having their own health bar and sensors lol.
  • zardOz2: @Demon666: i put a clock on it, if lagging it's very minor. Lines seem much less laggy than sprites
  • Demon666: @zardOz: yeah until the dev's add a HP Control function into lua. it's still pretty limiting atm. also does this lag for ya? even on max randomization and distance?
  • zardOz2: Better to damage non-game bots anything controlled by a condenser hp really
  • Demon666: @marat500: @crazykid67034: it can now damage a robot but do the games limitations it can only be a single robot that you program in.
  • Demon666: @sdac: found a bug. connecting the HP control to the anything even the adventure but will instantly crash the windows version.
  • crazykid67034: All you need to do now is get it to cause damage
  • crazykid67034: All you need to do now is get it to cause damage
  • kej1: @Demon666: I'll help you, if you want :)
  • Demon666: @kej1: I don't usually ask for help unless I'm really lost on something. and it's usually the math part that I get stuck on not the lua part lol.
  • Demon666: @marat500: I'm working on that. after all what is a cannon that cant hurt anyone lol
  • sjoerd19992: Omg
  • kej1: @Demon666: Can I help you with lua?
  • principia_rus: @Demon666: Tesla coil?
  • marat500: add damage pls
  • Demon666: @kej1: I just usually catch on to programing Languages fast lol
  • Demon666: I used to do some website design as a hobby I never took it to seriously though. @kej1:
  • kej1: @Demon666: Are you a programmer?
  • Demon666: @zardOz: thanks for helping me but i still don't understand how to set up the code that you made.. i am just so bad at math lol.... you did remind me of an example of a lua laser that i had on my computer and it worked perfectly!!!
  • ricardito08: @Demon666: Oh OK. Do you read 吃呢色?
  • zardOz2: @Demon666: from the RCdial--to sincos--to lua in0=y+, in1=y-, in2=x+,in3=x-
  • Demon666: @ricardito08: i only speak English
  • ricardito08: @Demon666: ok. 有可别吃呢色?
  • Demon666: @ricardito08: i know about it.... and all of these experiments are very meaningful.... they will be a important part of my larger future builds
  • Demon666: @zardOz: where are the reads comming from?
  • ricardito08: @Demon666: golden created this website:
  • ricardito08: You did a lot of lua experiments!
  • JOELwindows7: Awesome!
  • zardOz2: radius=5
    I cheated, rctoSincos in0=sincos y+, in1=y-, in2=x+, in3=x-
  • zardOz2: Sigh, didnt work
  • Demon666: @zardOz: thanks so much i gave up looking for a formula lol ill apply this after dinner.
  • roboz: neat! its like lightning! liked
  • zardOz2: Lol also its 360*dial input
  • zardOz2: Thats centerY+radius
  • zardOz2: ok it should be x2=(centerx+radius)*cos(360/Dialangle) and y2=(centery-radius)*sin(360/dialangle)
  • Demon666: @zardOz: same.... ive been looking up formulas for like +20 mins now lmao.
  • zardOz2: K it's a bit strange since it's draw to a point and not angle+length, also I never paid attention in trig;) but doable
  • Demon666: @zardOz: i want to be able to weaponize this into a long range lightning cannon lol.
  • Demon666: @zardOz: and yeah my goal is to make it fire from a single point not two like a laser. id have to give it a fixed length tho so it don't go on for infinity lol
  • Demon666: @zardOz: remember the slope code i made the other day? thats whats powering this thing but instead of using sprites its using lines.. basically what is happening is its taking several points between x1,y1 and x2,y2 and making small lines out of them and connecting them together but i used a randomizer to slightly change the location of the points in between constantly. also theres actually two lines running on two different randomizers to make it look more like lightning.
  • crazykid67034: Could use this in a storm scene. What we really need though is a light setting in the actual game
  • zardOz2: What is the sprite doing? I cant tell
  • zardOz2: Seems pretty fast to me, when testing I put a clock in show_numfeed. Great work Tip of the cap.... you want the aiming on a dial?
  • The_Blacksmith_: Cool lua! No lag for me! (S4) LIKE

LEVEL ID: 5047