Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Problem with scissor command?

Author
Message
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 2nd Jul 2012 14:29
Hi, I try to use the setscissor command, but I can't get it to work on android. Works fine on windows. I'm using AppGameKit 1076 and the beta of the android player on GT 10.1



Can anyone confirm that this is a problem?

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 2nd Jul 2012 15:12
What is supposed to happen that's not happening?

I checked it on my Kindle Fire, and the tiles move around just fine, without overwriting the bottom display area.

I'm using the compiled player from the latest AppGameKit version, which may be different from the beta version.

Some days, the bear will eat you.
Some days, you'll eat the bear.
Today, I'm eating the bear!
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 2nd Jul 2012 18:04
Ok, Rich, then it's working on your player, I'm waiting for the 1077 release before bothering setting up the android files again. Do you have a downloadlink where I can get that player from you?

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.
DennisW
16
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 3rd Jul 2012 15:44
Impetus73

I found it working ok and I am using acer 500 tablet. The player I am using is from the ap store

Dennis

Ham and Eggs Breakfast
The Chicken was involved the Pig was Committed
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 3rd Jul 2012 16:17
Dennis, do the tiles stop above the diag text? They should NOT fill the whole screen, the scissor command is suppose to clip them below 768 pixels. On my galaxy Tab 10.1 it just does not work.

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.
DennisW
16
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 3rd Jul 2012 17:35 Edited at: 3rd Jul 2012 17:42
I get one white tile that moves to the left when I release the touch screen. I can move it around but don't know what it is sappos to do I will retest and see what I can find out. it dose run I have not realy looked at the code to close I will get back to you.

Edit : This is what happens White tile at X0 and y0 Icane move it any where on the screen and it slowly goes back to position x0 and y0
FPS 60
x start :261
y Start :179
xoffset: 0
yoffset: 0
I hope this helps

Dennis

Ham and Eggs Breakfast
The Chicken was involved the Pig was Committed
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 3rd Jul 2012 21:05
Yes Dennis, then it's not working in yet another way... *sigh*

Try running it in windows, and you'll see how it's suppose to work.

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.
Marl
13
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 4th Jul 2012 02:31
As an alternative, you could use the global setScissor command rather than individual sprite one.

- Scissor the sprite area
- Show the sprites
- Render
- Scissor the bottom
- Hide the sprites
- Render

Just a thought.

Login to post a reply

Server time is: 2024-11-23 16:59:39
Your offset time is: 2024-11-23 16:59:39