Here:
http://www.scirra.com/store/free-html5-game-engine
Escape with "" eg:
text = "<p align=""center"">"
choose(int(random(0, 40)), int(random(60, 100)))
Sulli Yep you'd need to get the time from a server if you wanted to avoid that.
You can get the time through javascript with the Browser.ExecJS expression. (@Sulli)
javascriptDateTime.capx (r132)
Well event 2 will only set the frame back to 0 if event 1 is false - that is there's nothing overlapping any switch. Change the condition in event 2 to:
Sprite3 NOT overlapping Sprite2
AND
Sprite3 NOT overlapping Sprite5
spriteOverlap.capx
Put the actions in a group.
On start of layout
-> Wait 20 seconds
-> Disable group
Every tick subtract dt instead of every second subtract 1.
slidingTimebar.capx
Check it out: joystickArmControl.capx
x = x + distance * cos(angle) y = y + distance * sin(angle)
---
http://www.mathsisfun.com/sine-cosine-tangent.html
<img src="http://www.mathsisfun.com/images/adjacent-opposite-hypotenuse.gif" border="0">
Sine Function: sin(?) = Opposite / Hypotenuse Cosine Function: cos(?) = Adjacent / Hypotenuse
Sine Function (to find Opposite side):
=> sin(?) = Opposite / Hypotenuse
=> Opposite = Hypotenuse * sin(?)
=> y amount = distance * sin(angle)
Cosine Function (to find Adjacent side):
=> cos(?) = Adjacent / Hypotenuse
=> Adjacent = Hypotenuse * cos(?)
=> x amount = distance * cos(angle)
Develop games in your browser. Powerful, performant & highly capable.
The start page gets disabled when C2 crashes and you can't turn it back on unless you have a licence (or edit the registry).
I think you just want to set the arm angle to the thumbstick angle. Though I also had to rotate the arm and sword 90 degrees clockwise so that they are facing right (towards 0 degrees).
https://dl.dropboxusercontent.com/u/8367729/construct/example/25-MAY-13%2520-%2520Changed%2520to%2520virtual%2520joystick_edit.capx
You can disable solids. Hide layer 1 -> pick solid objects on layer 1 (with the 'is on layer' condition) -> set disabled.
Sorry I missed your reply. Check the collision polygon of the Level sprites.
You can also put your unused objects on a different unused layout.