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 / Sprite Slide

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 12th Jan 2018 11:54
Hi
Do you if there is a way to get a sprite slide over other sprites like blocks or enemies (with physic or not) ?

Here is my test code :



thanks a lot
AGK2 tier1 - http://www.dracaena-studio.com
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 16th Jan 2018 18:34
Physics is the easy way as you don't need to manually deal with collisions. It would be possible to write sliding collision code for sprites but might get a little complicated with anything more complex than circle shapes sliding off more complex shapes.
I would normally just use physics for this and let Box2D deal with the maths.
Using AppGameKit V2 Tier 1

Login to post a reply

Server time is: 2024-11-24 03:59:42
Your offset time is: 2024-11-24 03:59:42