Your C2 tests

Show us your completed creations made in Construct 2

Post » Thu Apr 14, 2011 3:17 pm

simplicity prevails.

i guess k.i.s.s. (keep it simple stupid) applies to game design as well. i would have entirely over thought how to implement, what you did so simply.

thank you sir...
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

Post » Sat Apr 16, 2011 1:30 am

I am trying to create a simple Breakout game with C2, but i am struggling to work out how to make the ball move in a random direction?

Here's a link to the capx file if anyone can help.

[url:2xh1n6db]http://dl.dropbox.com/u/22173473/Breakout.rar[/url:2xh1n6db]
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Sat Apr 16, 2011 9:57 am

i don't know if this is what you are looking for, but i'm currently playing with an asteroids test. i make the asteroids begin moving in random directions at the start with this...

[code:3kdup0w1]system | on start of layout > big-rock | set angle to random(0, 360) degrees[/code:3kdup0w1]
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

Post » Sat Apr 16, 2011 10:06 am

speaking of said asteroid test,

i am trying to emulate the same type of movement i remember in the old atari game.

all you had to navigate was forward thrust, with left and right rotation controls. the movement was inertial based, so you could thrust forward to increase speed and if you let off the thrust, it would eventually slow down on it's own. not exactly accurate for space physics...lol, but it was cool for the game.

the problem i'm having is that when you're moving forward, the ship should rotate while continuing it's forward momentum. but instead, when i press left or right keys, that i have assigned to rotation, the ship turns in the direction it rotates. not the behavior i expected from 'rotation', and i have not figured out how the fix it.

any takers... [url:3ermf9co]http://dl.dropbox.com/u/6707683/construct.../asteroids_test.capx[/url:3ermf9co]

any help is greatly appreciated...
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

Post » Sat Apr 16, 2011 3:15 pm

[quote="harrio":yt7fyxvu]i don't know if this is what you are looking for, but i'm currently playing with an asteroids test. i make the asteroids begin moving in random directions at the start with this...

[code:yt7fyxvu]system | on start of layout > big-rock | set angle to random(0, 360) degrees[/code:yt7fyxvu][/quote:yt7fyxvu]


I Tried to include this event, but it had no effect....i will keep testing.
Thanks

-------------------------------------------------------------------------------------------------------

"i am trying to emulate the same type of movement i remember in the old atari game"

Have you checked the asteroid game example that is featured in this thread, you might be able to adapt the events for your game.
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Sat Apr 16, 2011 3:27 pm

[u:xv3hi6li]SpaceBlaster game[/u:xv3hi6li]

Follow up to the spaceshooter game i posted a couple of weeks ago.

Changed the game to a side scroller, and added some extra enemies.

[url:xv3hi6li]http://dl.dropbox.com/u/22173473/SpaceBlaster1/index.html[/url:xv3hi6li]

Left mouse: fire.
Middle mouse: Drop torpedo's
Right mouse: Activate tractor beam to collect red powerups.

Still not finished!

Not sure why the framerate is so low? (only 23 on my system)
If you play it could you let me what frame rate its running at?

Thanks
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Sat Apr 16, 2011 5:26 pm

I get 20-24 fps using Firefox 4.0 (WinXP)

Athlon X2 4400
2.5g ram
Zotac Ion 512mb

How old is your cpu?
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Sat Apr 16, 2011 6:19 pm

60 fps on Chrome 10 . No problem here
B
58
S
13
G
10
Posts: 632
Reputation: 12,515

Post » Sat Apr 16, 2011 6:22 pm

[quote="Caspis Sinclair":286tw47n]I get 20-24 fps using Firefox 4.0 (WinXP)

Athlon X2 4400
2.5g ram
Zotac Ion 512mb

How old is your cpu?[/quote:286tw47n]

Intel(R) Pentium(R) 4 CPU 3.00GHz
Chrome browser
2 gig ram
Gforce 6200 256mb

The overall framerate for in the latest build(32.2) has dropped in comparison to the previous releases.

This can be tested if you replace 'preview.html' file in the main C2 folder with one taken from an earlier build.

Using the old 'preview' the game runs at 30 frames ps, as opposed to 22 / 23 with the new one.
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Sat Apr 16, 2011 7:54 pm

[quote="chrisbrobs":1ucfwgx8][quote="harrio":1ucfwgx8]i don't know if this is what you are looking for, but i'm currently playing with an asteroids test. i make the asteroids begin moving in random directions at the start with this...

[code:1ucfwgx8]system | on start of layout > big-rock | set angle to random(0, 360) degrees[/code:1ucfwgx8][/quote:1ucfwgx8]


I Tried to include this event, but it had no effect....i will keep testing.
Thanks

-------------------------------------------------------------------------------------------------------
[/quote:1ucfwgx8]

once you put in the 'set random' for the angle, do you add a 'move forward' action for the sprite? i realized, i did not list it in my suedo code.
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

PreviousNext

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 6 guests