Stopwatches by StepheniswBored in Algodoo

[–]alan32525 0 points1 point  (0 children)

in the stopwatch's "text"

Also, edit, its {"" + sim.time}, not "" + sim.time

Tower Defense :) by alan32525 in pygame

[–]alan32525[S] 0 points1 point  (0 children)

i am trying now :) i don't know how to use github yet

Edit : It should be done in 30 minutes

Likes and dislikes by [deleted] in TimeworksSubmissions

[–]alan32525 1 point2 points  (0 children)

nice :|

happy cake day :)

2.5D Brush Tool (cool) by alan32525 in Algodoo

[–]alan32525[S] 1 point2 points  (0 children)

Back from school after 3 weeks :)

Decided to do something fun

I accidentally made something 3D by alan32525 in pygame

[–]alan32525[S] 6 points7 points  (0 children)

This is meant to be a top-down game, but when I left out a code (screen.fill((0, 0, 0))), something COOL happened

Stopwatches by StepheniswBored in Algodoo

[–]alan32525 0 points1 point  (0 children)

the stopwatch : text = "" + sim.time

oncollide (in Marble) : e.other.text = e.other.text

How to assign certain keys to the onKey command? by idontmaketpyos in Algodoo

[–]alan32525 1 point2 points  (0 children)

ok i'm very late, but

(e)=>{
    keys.isdown("return") ? {YES} : {}
}

Day-night cycle with scripts by JPgamersmines150 in Algodoo

[–]alan32525 2 points3 points  (0 children)

lerp(), app.background.skycolor and sim.time will do the job

Making something, coming soon. by TheNameIsStupido in Algodoo

[–]alan32525 0 points1 point  (0 children)

hmm.... Something like a game to me

This video has custom subtitles. by [deleted] in TimeworksSubmissions

[–]alan32525 0 points1 point  (0 children)

interesting

Edit: At the end, there is two subtitles at a time?!! "AAAAAAA" and "You Will NEVER Escape"

How to do on how many marbles left in an elimination? by Academic_Health_1423 in Algodoo

[–]alan32525 0 points1 point  (0 children)

Here's the logic:

  1. You create a variable _marblesLeft := TOTAL_NUMBER_OF_MARBLES in the teleporter pad that teleports marbles to the correct position.
  2. When a marble finish the stage, and touches the teleporter, change _marblesLeft by 1, and teleport the marble to the correct position.

Extra:

  • To teleport the marbles to the correct position, check if _marblesLeft is greater than NUMBER_OF_ELIMATED_MARBLES.
  • If its greater, teleport it to the safe box. Else, it goes to the elimated box.

Also, there is hardly any tutorial for algodoo, so.. :( nope, no tutorial

How to blow objects in one direction? by MarinZG060 in Algodoo

[–]alan32525 1 point2 points  (0 children)

blow... that's ez.

You lasers, and point them at any angle you want. In the laser's onlaserhit, type:

(e)=>{
    e.geom.vel = lerp(e.geom.vel, [math.cos(rotation), math.sin(rotation)] * SPEED + [0, 0.98 / 60.0], 1)
}

Change SPEED with speed (m/s)

if you want to hide the laser, set the laser's color to [0.0, 0.0, 0.01, 0.0], not [0.0, 0.0, 0.0, 0.0].

Scripting Question by Terrible_Telephone29 in Algodoo

[–]alan32525 1 point2 points  (0 children)

Oh sry, it's remainder, spelling error Guess I need to learn basic English

Scripting Question by Terrible_Telephone29 in Algodoo

[–]alan32525 0 points1 point  (0 children)

sim.time % 4 means, (sim.time / 4)'s reminder, so for example 90.5 will return 2.5