Thanks Guys,
here's the Capx - sorry it's so big - it's because of the huge background image - it's the main feature of the project and I don't really want to lose the great detail. (Any tips for retaining this detail and improving performance gratefully received!).
https://dl.dropboxusercontent.com/u/437 ... 0Capx.capx
You'll see that the mouse pointer misalignment worsens as you zoom with z and x. I've tried various ways of adjusting mouse.x and mouse.y by factors related to the scale, but to no avail.
Cheers,
Martin
It's accurate when in the centre of the screen. When at the edges of the screen the sprite overshoots the mouse pointer and appears at a more peripheral position (or off the screen).
Hi,
I'm setting one of my objects to go to Mouse.X, Mouse.Y every tick, but it doesn't go accurately to the mouse pointer position.
What am I doing wrong?
Is it something to do with scaling of the layout?
The kids in my school coding club love C2, but many only have Macs at home.
Will portable installations of C2 on USB sticks work on Macs running Windows emulators?
Cheers
Problem fixed!!
After a little more fiddling I realized the sound was playing every tick, so I added a 'trigger once' and it works.
I'm posting here because this is probably something I'm doing wrong rather than a bug <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> The narration in this projects starts off OK, but when it get's to the second sound file I get a horrible audio glitch.
Here's a slimmed down version of my capx :
https://dl.dropboxusercontent.com/u/437 ... itch2.capx
Help?
Thanks Newt,
'works a treat - a tiny bit of jerkiness (probably due to my large image), but quite acceptable.
What's the reason for the 1-0.05^dt bit? (I replaced this with a variable so I could easily fiddle with the timing)
Thanks RamPackWobble,
so your capx seems to show that it's not my large sprites that cause this problem? Any solutions?
Thanks!
Is there an easy way of chopping a large image like this into smaller chunks, then arranging them again in C2? I'll be using GIMP. what size chunks?
I'm using bullet behaviour on an invisible sprite to do a movie-like pan around a large map. The panning is quite jerky at times. Here's the file...
https://www.dropbox.com/s/0g54ap4bcugno ... Jerky.capx
The background sprite is large. Is this the problem? Do I need to chop it up into small tiles?
I want to centre an object on the screen so I used set position and entered the coordinates as:
X WindowWidth / 2
Y WindowHeight / 2
This doesn't work - the object appears bottom right of the screen. If I enter the numbers (320, 240 for the default window size) then the object appears in the correct position.
Develop games in your browser. Powerful, performant & highly capable.
Else is covered here in the manual...
scirra.com/manual/124/system-conditions
Member since 10 Jan, 2014