So, hello to you all. I decided to try around with mmf2 a little bit after reading up on it on wikipedia. Now i browsed the forums a bit but did not see anything that had to do with my first two "problems". well they're not real problems, i just wanna know if i'm attempting things right and if there is an easier way to do it (i think there is )
I'm trying to make a little RPG-style game.
First one is: i got a moving animation consisting of two pictures (wow, how smooth) and now my way to display movement on my character is as follows:
-On my active picture, which is the player character, i defined 5 alterable values (move_up, move_down, move_right, move_left and animation), movement type eight direction with only 4 picked.
-i opened up the event editor, and chose "Upon pressing "right arrow"", new picture (move_right_01) and set all variables except move_right to 0 (it is set to 1).
-now i defined another event: repeat while "right arrow" is pressed, every 00"-25, if move_right=1 and animation=0:
set animation to 1 and newpicture (move_right_01)
-another event: repeat while "right arrow" is pressed, every 00"-50, if move_right=1 and animation=1:
set animation to 0 and newpicture (move_right_02)
and all that for every 4 directions. now i wanna know is this a good way to do it? i suppose there must be an easier way in this kind of tool :P
Second question is about collisions:
To test i made a simple empty room as backdrop and put an active object (bed) in it. now naturally i don't want my character to run through the bed. and now im kinda stuck here. the way i did it (which isn't quite working) is:
-event editor: collison between "bed" and "player + player is facing East -> Set authorised directions to North, South, West
So this way the character can't move into the object, but also cannot move eastwards ever again i did this with all four directions and added an event to Pressing left, allowing all directions. Now the player can naturally move through the bad if hes coming from the right.
So these are my problems, i hope i am not bothering you guys with this too much, and apologies if there are any spelling or grammar mistakes, english isn't my first language. Thanks in advance for any help, and have a good day