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.

Newcomers AppGameKit Corner / Sprite as Level Image

Author
Message
Kai Ralfs
4
Years of Service
User Offline
Joined: 19th Jan 2015
Location:
Posted: 19th Jan 2015 10:17
Hi there,
i would use an Image as Sprite. The Image is an PNG with Transparence an cover the Window. (Size ist 480*800)
Can i use that as Levelimage? Also an Sprite that has Physic on and the Levelimage has Physic on to?

The Ballsprite has
.
The Levelimage has this too ... but the PLAYER_BALL does not shown.
When i set the levelimage Physic off than the Ball is Shown.

Or must i design every level one Sprite for Sprite?

Greetings
Kai
BatVink
Moderator
16
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Jan 2015 12:58
You won't be able to use one image as a physics-enabled level. You could still use it and add transparent sprites as static physics objects over the top.

It's a nice idea - a well-drawn background with invisible physics sprites. The disadvantage though is that you can't reuse your drawn platforms etc throughout the game.

Quidquid latine dictum sit, altum sonatur

Login to post a reply

Server time is: 2019-08-21 06:32:29
Your offset time is: 2019-08-21 06:32:29