The Daily Click ::. Forums ::. Klik Coding Help ::. Newbie Questions
 

Post Reply  Post Oekaki 
 

Posted By Message

REDFIST



Registered
  14/04/2004
Points
  7
24th May, 2004 at 06:52:40 -

Sorry to ask newbie questions but i have some problems with MMF 1.5

1)I need to make my characters who are acting as animations at the moment to move a set number of pixels in a certain direction with only one key press.

2)When i import my GIF's that have 2 frames of animation how exactly are you supposed to import then and keep the animation and transparent background.

Sorry again for asking stupid questions and thanks in advance.

 
n/a

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
24th May, 2004 at 06:59:46 -

1):

+User presses a key
-Set x position of "Player Object" to "posx("Player Object")+5"

2) errrrr... don't know, i never import GIFs.

Image Edited by the Author.

 
www.thenatflap.co.uk

REDFIST



Registered
  14/04/2004
Points
  7
24th May, 2004 at 09:49:45 -

it works but the only problem i need the graphic to actually move there and keep playing. More like a move and stop input but keep playing thingy. Like one key press then do preset distance but move not set position.

If that makes sense thanks

 
n/a

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
24th May, 2004 at 10:05:45 -

oh i see. what you do then is have

+User presses a key
-Set flag 1 of playerobject ON

+Flag 1 of player object is ON
+Every 0.4 seconds (or whatever, depending on the speed you need)
-Change x position (as above)

then when the object reaches where you need it to go, set the flag OFF. i think that's what you mean isn't it?

 
www.thenatflap.co.uk

BattleCat



Registered
  08/09/2002
Points
  978

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
24th May, 2004 at 10:47:19 -

I've made a little file for you too take a look at:

http://www.nielsen-verninge.dk/evifiles/PixelMovement.cca

 
n/a

REDFIST



Registered
  14/04/2004
Points
  7
25th May, 2004 at 02:18:57 -

thanks for that and the file is great and works perfectly.
i just have to now learn how to replicate it properly

 
n/a

BattleCat



Registered
  08/09/2002
Points
  978

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
25th May, 2004 at 02:57:05 -

If you just look at it a lot of times, i'm sure it will seem logical, if it doesn't already, and therefore be easy to figure out

 
n/a

REDFIST



Registered
  14/04/2004
Points
  7
27th May, 2004 at 02:48:04 -

i got it
i am not sure how to make this work for a animated image which i need to do.
i think i have seen it done before

basically you have this guy who moves in 4 directions with 2 frames per direction
he needs to move a set amount of pixels each time you the key and he doesnt want to be inturrupted.

i got most of this happening but cant seem to get him to do his animations or keep his transparent background.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click