a set of beginner questions

Hi, After some searches here on the board , I am unable to find what i am looking for.

Some introduction: I have a good experience in actionscript. However, i am totally new to game dev.

I have a basic set up for a game, basically its based on a water (world) type of game.
Jumping on floating objects, an endurance game.

I did some testing, and could write the whole game myself, however, doing realistic water / floating physics is a whole different level.
thats why i stumbled upon Box2D. But I am not even remotely sure that the following questions (2 & 3) are possible.

I've attached screenshots
please bare with me, i'll try to be as clear as possible 🙂

1) (screenshot : character)
my char doesn't follow the sloped boundaries of my object.
- it floats perfectly on the water level, however the top of the surface is not straight, it has little curves/slopes.
How do I make sure, the char follows that perfectly? for example: when the slope is steep, you see the char floating on the highest point of the movieclip/component. (i looked into the vehicle demo) but i am stuck to apply that to my own char.
The red line is there to show what exactly the issue is.
character-slope.png
character-slope.png (2.74 KiB) Viewed 1415 times



Character component settings
character.png
character.png (24.13 KiB) Viewed 1415 times


debris/floor settings
floating-object.png
floating-object.png (31.34 KiB) Viewed 1415 times


2) How to detect water collisions, I found out that when a char is in the water, it is unable to jump. (i am using the BoxMan class)

3) I need to create various instances of my debris movieclip (the stuff that floats in the water) which will scroll from right to left.
How do I attach the component movieclips dynamically so that they perfectly float on the waterlevel? (the movieclip itself is based on various keyframes with different shapes and sizes that will be triggered randomly when they get spawned offscreen)
Or should i make my levels in a huge movieclip that I scroll through a tween (regardless if its on stage or with actionscript (like greensock tweening engine)


I feel 'sorry' for myself to ask such a range of questions, but I am really stuck.
It feels like my first few days in Flash/actionscript (haha). I do not ask for out of the box code or anything.
Just a few pointers, things to look at/take in consideration.

Thank you for your insight/time.
best regards
V

Original thread: https://box2d.org/forum/viewtopic.php?t=8614