Lua: Blizzard

HXCTCreations - Custom level - from Android
PlayEdit13 players liked this.Log in to like this level.

A script to simulate blizzard. A little buggy for connected objects.

Views: 552 Downloads: 234 Unique objects: 1 Total objects: 26

Discuss this level

Log in to comment on this level.
  • BloodStorm: I think it isnt buggy, because most things act weird in heavy winds
  • Banget: @MARRA92: put a wind?
  • Banget: @MARRA62: put a wind?
  • Banget: Put to wind for blizzard?
    What to wind blizzard?
    The wind blizzard is to entity:set_velocity(x,y) with lua.
    What to X wind blizzard?
    For principia, this a Velocity is X.
  • MARRA92: @Golden: this is what i meant for LUA wind when i asked
  • JOELwindows7: Wowowow Super Duper Awesome
  • Luke Miller: Lol the robot flew away!
  • TechZ2124: Pretty nice ! But couldn't that be done just by adding a bit of gravity in the axis X ? Anyway looks realistic ^^
  • HXCTCreations: @Chad64: The code already does that, just enter a negative value to strength argument, and it blows everything to the left :)
  • HXCTCreations: @wassup: Check out LuaScript in Principia wiki, you will find useful function for scripting in Principia. However, you should learn abour lua first, it's quite a simple, yet powerful programming language :)
  • wassup: @HXCTCreations: I love this how do know all the codes cause i try a lot
  • Chad64: @HXCTCreations: just checked the code, it actually isn't that complicated as i thought. Maybe u could add another arguement that tells the xvelocity entities should be blown to :D
  • HXCTCreations: @Chad64: It's by using set_velocity() function to every objects to accelerate them in x axis but keep their velocity in y axis so they move as if they're blown away by the wind. This works well with non-connected objects but not with connected objects and robots.
  • HXCTCreations: @gemaine: I don't know.. I use set_velocity() function to blow things, and this function does not work properly for connected object physics. Maybe this can be done via gravity manipulation, but I'm focusing on some other projects :)
  • Chad64: @HXCTCreations: you goddamn lua beast how u do dat
  • Golden: @HXCTCreations: seems perfect for my story mode
  • gemaine: @HXCTCreations:
  • gemaine: I have a question is this going to be perfected for connected objects
  • HXCTCreations: @Golden:

LEVEL ID: 24661