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

Author
Message
Blendman
4
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
Bronze Codemaster
11
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: 2018-10-15 21:57:01
Your offset time is: 2018-10-15 21:57:01