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 / I met a problem with ImageJoiner when put some image together.

Author
Message
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 5th Mar 2012 09:00 Edited at: 5th Mar 2012 09:01
I use such kind of image to do collision test, but I can't put it with other images together. If I use ImageJoiner to put it into a texture, the game will take a mistake. The image 's collision shape is not exactly the one I expect, I have been puzzled for a long time. Please give me a hand.


The Miracrea Games

Attachments

Login to view attachments
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 5th Mar 2012 11:53
Halley are you using SetSpriteShape, set to polygon?
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 5th Mar 2012 14:01
yes, I have.

The Miracrea Games
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Mar 2012 14:42
Halley, can you share the code? I'd be happy to take a look, you have my email if you prefer but if you could provide an example in code it might help solve this finally.

halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 5th Mar 2012 14:44

I hope you can understand the code. there is nothing else.

The Miracrea Games
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Mar 2012 14:47
Where do you set which image to use from the atlas texture?

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 5th Mar 2012 14:48
Halley, and if you put jumpch1.png as a standalone file NOT in a texture atlas, does it work?
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 5th Mar 2012 14:50

"jumpch1.png" is the image which I use from the atlas texture.

It does work when as a standalone file.

The Miracrea Games
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Mar 2012 14:54
Quote: "Where do you set which image to use from the atlas texture?"



halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 5th Mar 2012 14:55
m_iTextureID is a atlas texture image id.

The Miracrea Games
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Mar 2012 15:03
Are those the AppGameKit methods or your own? If they are the AppGameKit methods then I don't know what is going on but I was assuming they were calls to your own methods.

halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 5th Mar 2012 15:10
I use the AppGameKit methods, there is none of mine.

I just wrap a class use AppGameKit methods.

The Miracrea Games
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th Mar 2012 15:14
Could it be a problem in how it is wrapped?

I tried this using an image joiner image and the same commands in T1 and it worked fine.

halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 6th Mar 2012 08:56
I will examine it.

The Miracrea Games

Login to post a reply

Server time is: 2024-05-07 23:53:06
Your offset time is: 2024-05-07 23:53:06