I don't have a multi-touch device so I can't fully test this but here is an idea of how to distinguish between multiple touches. It uses sprites to keep track of the positions of the touches and what objects were initially touched.
http://dl.dropbox.com/u/5426011/examples%208/multitouch.capx
Edit: Since I can't test it I can't be sure but you may need to add a "for each Sprite" condition to the top of event 4.
Use can use the change in the mouse position to change the angle.
ex:
always:
-add MouseX-global('oldmousex') to camera_angle_x
-set global oldmousex to MouseX
Then just plug it in to the rotation formula.
Develop games in your browser. Powerful, performant & highly capable.
In your Create method save a reference to the new object you just created to a variable.
self.spr = SOL.spr[0]
Then in your update method you can access the sprite with "self.spr".
self.spr.x += self.velx
It appears that the bug is because the collision polygon for the halfpipe is concave. According to this the Box2d engine needs the collision polygons to be convex to function correctly.
It wouldn't be an issue with the texture setter plugin. In the past I've seen objects not getting pasted into the canvas at the start of the layout. You could try a slight delay by using "compare time equal to 10" instead of "start of layout".
There is always a pattern with random number generators. Construct uses http://en.wikipedia.org/wiki/Mersenne_twister to generate random numbers so the pattern is quite long and shouldn't be noticeable.
Can you give an example of a noticeable pattern?
The plugin has the expression "imageUrl" which stores the entire contents of the canvas as a png in base64 which you can copy paste into another browser window to view. You should be able to use the string returned by imageUrl with the plugin "load image from url" but saving the file to some server space is beyond my knowledge as I haven't dabbled with that aspect of the internet yet.
Hi I would like make a 1945 Game based on the C2 example but don't know where to start.
How far have you gotten? Do you have a wip cap? I mean you should be able to make some sort of start.
If not I think you're going at learning Construct the wrong way by learning how to compile it from the c source code. What kind of meaningful fixes/upgrades to the source code can you do if you don't know how to use the program?
Do sprites display correctly? Older ati cards have crummy drivers for opengl. I have an ati card on my laptop that is about 4 years old and for me re-sized sprites become transparent. The latest drivers did not fix it but for me tiledbackground objects display correctly. You can try to tweak the opengl display settings for your card as that sometimes can affect it. Another thing you can try is http://titaniumgl.tk/, which wraps opengl to directx.
I found this site which has a fairly simple approch to doing weighted random.
http://eli.thegreenplace.net/2010/01/22/weighted-random-generation-in-python/
and implemented in c2:
http://dl.dropbox.com/u/5426011/examples%208/weighted_random.capx
It can be made into a function fairly easily by using the "function plugin".
You could use the tiledbackground object.
http://dl.dropbox.com/u/5426011/examples%208/textureLine.capx
DirectX plugin? You mean the runtime?
Member since 15 Jun, 2009