Posted: 29th Oct 2011 0:26
Hi all, I'm from Russia, and I apologize for my bad English. I have a problem.
In my project the camera (view) moves with a bullet, as in Angry Birds. construction is the following:
first we get a shot in the right direction:
setSpritePhysicsImpulse (2, getspritex (2), getspritey (2) + getspriteheight (2) / 2, 50 * cos (getSpriteAngle (1)), -60 * sin (-getSpriteAngle (1)))
2 - Bullets ID
then we attach the camera
do
bla bla bla..
setViewOffset (x, y)
loop
where x and y - coordinates of bullet in the flight. so we following the bullet in the center of the screen and so flew around the world)) But the problem is that the sprites by which we fly start to flicker quite! Why does this happen? Long drawn and the problem with the backbuffer or something? I am using PC,windows
Posted: 29th Oct 2011 7:44
Also, in example ScrollingSprite sprite is flicking sometimes! Whats a pity! Is it possible to remove this ??
Anyway im making black box in the center of screen and write
do
x=x+1
setViewOffset ( x, 0 )
loop

and when veiw goes image start flicking!

sometimes it stand rightly and sometimes it begin to shaking!
Posted: 29th Oct 2011 17:43
you need to add the SYNC command!!!!!!!
Posted: 29th Oct 2011 19:41
oh my god, do you think that im so stupid???
of couse i used it.

please try to make sprite , and in main loop

write

setview..(x,0)
x=x+1

and you will see that sprite flicking while moving how can i remove it???
Posted: 29th Oct 2011 21:00
Check the driver version of your graphics card. It often helps to install the latest drivers. I saw flickering often when using older driver versions.
Posted: 29th Oct 2011 23:58
Im already have got latest drivers!!!
Posted: 29th Oct 2011 23:58
Sandidro,
Don't take offense, looking at your code initially I thought the same thing since I didn't see it at the bottom of loop which brings me to my question.
Where is Sync() at in your code. You can get the same thing if you are using Sync() in multiple calls.
Posted: 30th Oct 2011 0:48
Sync() in the end )

you can make your own game with 1 sprite in center of screen
you make sprite, then

do
setViewOffset ( x, y )
x=x+1
sync()
loop

you will see that sprite is flicking sometimes
Posted: 30th Oct 2011 15:45
Im using graphics media accelerator 3150 and my friend have got nvidia geforce gt 540m .
at both computers sprites sre flicking
and sprites from AppGameKit scrolling examples are flicking too

try sprites- fire -in this example most.

This problem is beginning to bother, why not see it
in trial version ...
to give all the new drivers and the most powerful graphics card to all buyers of 15 mb 2d game ... a bad idea
Posted: 30th Oct 2011 17:51
Amazing that it begin to flick only while moving/rotating sprites

it is impossible to understand WHY!!!
Posted: 30th Oct 2011 21:44
On my Win7 Pc and Iphone 3gs the mentioned examples don't flicker at all. I am using Tier2 though.
Posted: 31st Oct 2011 1:50
At Tier 2 I saw this effect too.
I have got XP professional my friend win7

but all of us saw this terrible effect((
Posted: 31st Oct 2011 8:34
Is the sprite flickering happening in the Examples or code that you wrote? I am not getting the flickering at all as you have described.
Posted: 31st Oct 2011 13:27
Sprite flickering anywhere!!! I saw it in sprite fire and in sprite scrolling.
Posted: 31st Oct 2011 14:33
WE need help))
Somebody must find acer aspire one
and run AppGameKit exampels(scrolling sprite, sprite fire) on it, and he will see this terrible bugs))

Note: Sprites do not flick always while moving, this happining sometimes, it looks like slow updating image line going from up to the end of sprite and it looks terrible!

I will give you a video soon
Posted: 31st Oct 2011 16:14
Got two Acer M3300 computers here. Sprites are smooth as a baby's bottom.
Posted: 31st Oct 2011 17:30
Can you email me the project and I'll take a look. There is a fix in the engine that deals with the problem you mentioned but it is only applied in certain cases.
Posted: 31st Oct 2011 23:36
Thanks for sending the source. It appears to be caused by vsync, but only when in fullscreen mode. I'll add a command to set vsync on, but we did notice vsync to be noticeably erratic if using a scrolling screen (we originally were going to have this but replaced it in favour of SetSyncRate, as it kept the frame rate smoother)
Posted: 1st Nov 2011 0:56
ooh... I dont think so)

1) VSYNC is ON in OpenGL settings of my card

2) I have got flicking both in fullscreen and window mode

3) I have got flicking without scrolling screen too
Posted: 1st Nov 2011 14:04
Oh I see what you mean, I noticed this horrible effect about 2 days in to using AGK. I have wondered why other people haven't jumped on this one, I assumed no one else had seen the issue. It looks to me like a sync issue, you get a slow scan up the screen where you can literally see the screen redrawing. It is far more noticeable in fullscreen mode, even on pretty powerful pc's. But it gets easier to spot, the slower the device is, and especially when using onboard video. It is visible in ALL demos if you look closely, not just the side scroller demo. It's just way more noticeable in side scrolling stuff, as I found out with my own side scroller awhile back.
Anyone who cannot see this. Enable fullscreen mode in the setup file of your project. You will see the effect more easily. Look closely and you will notice a line moving up the screen. It reminds me of an old tv with the picture not tuned in properly causing a wave effect up the screen.
it's a hard one to describe, but it isn't just sprites flickering it is the whole display!