# Need help with my 1st Project

0 favourites
• 10 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
• Hi,

I'm working on my first project and I have a doubt.

How do I keep the ball in the square without falling?

I saw several tutorials and did not find a way to work.

Could anyone help me?

http://dl.dropbox.com/u/43945453/1stProject.capx

Sorry by my English.

thanks

• use physics behaviors to ball and square

square set immovable 'yes'

• use physics behaviors to ball and square

square set immovable 'yes'

With these parameters the ball is outside the square and it must stay within the square. <img src="smileys/smiley19.gif" border="0" align="middle" />

tyvm

• yeah because polygons fill all box i think easiest way is to create 4 sides of box

• or check this dl.dropbox.com/u/44710358/ball.capx

• WOW thanks...

You set the collision polygon <img src="smileys/smiley32.gif" border="0" align="middle" />

tyvm

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads

This works with a square sprite ... but... if the sprite is round ... how to put the ball inside the round sprite?

<img src="smileys/smiley11.gif" border="0" align="middle" />

• If the round sprite is transparent in the middle, like the square... it should work the same. Although i'm not sure if there's a limit to how many sides the collision polygon can have

• ... i'm not sure if there's a limit to how many sides the collision polygon can have

Too many sides (say, > 8) put too heavy a burden on the engine (each point on each polygon has to be compared, and coming from JavaScript, that's a pretty processor-intensive process).

The bottom line: limit the number of sides to the minimum that give you the results you need.

• I've looked at 77 pages on the forum "How do I..." and could not solve my problem.

I am now looking to see if I think Canvas something to help me.

I need to put that ball in the maze ... I need a mask to the sprite.

This is my (secret) 1st Project <img src="smileys/smiley9.gif" border="0" align="middle" />

dl.dropbox.com/u/43945453/myproj.capx

• 10 posts