TheNewGuy sure thing, give me maybe 10-30 minutes and I'll have it up
These both exist already, don't they? In the Events tab you can search the current event sheet, and if you press R or right click -> replace you can replace the event with another object of the same type.
Clamp will prevent the value from going below the lower bound (second parameter, 0) or above the upper bound (third parameter, arr_mapdata.Width - 1). I just do that to prevent it from trying to place any ores outside of the array.
Ore Veins Here's a small thingy I've been working on with world generation + ores. Right now there's a whole bunch of other stuff in there, if you need me to strip it apart I can do so. The ore generation takes place on the event sheet "World Gen" from events 3-19
You'll need to give more info than that. Post a capx or screenshot of events if its too large.
<img src="smileys/smiley32.gif" border="0" align="middle" />
sent you an email :)
— The OP was asking for rounding up. Yes round(x) would work, but if the decimal is below 5 it will round down. ceil(x) will always round up, and floor(x) will always round down.
Happens to me too sometimes. Very odd.
There's not enough information to help you. Try logging to the console with the Browser object to make sure you have all your events right. If you can't figure it out with that post some screenshots of the events involved.
Select the while True block and right click -> add blank sub event (Or press B) then you can add any actions you want to run after the for loop in there
Develop games in your browser. Powerful, performant & highly capable.
Or try the lerp function :)
From the manual: lerp(a, b, x) Linear interpolation of a to b by x. Calculates a + x * (b - a).
Member since 23 Oct, 2012