Topic Options
#164705 - 11/03/09 11:46 PM Quick question
imamariobro


Registered: 12/07/07
Posts: 40
Loc: United States
I want to make my character bounce back after being hit by an enemy, how do I do this?
_________________________
Please disregard my bad grammar/punctuation in older posts.
I'm a novice game maker.

Top
#164712 - 11/04/09 01:02 AM Re: Quick question [Re: imamariobro]
nivram


Registered: 07/11/06
Posts: 1545
Loc: Bandon, OR
Hi imamariobro
It depends on what kind of movement you are using. If it is a simple custom movemet.

Player facing Right
+Bullit overlaps character
+Only one action when event loops
>Character: Set X posion to X player -1

Do the same for facing left, except change X of character +1

Marv
_________________________
A decision making process is binary.

MMF2 Examples and games (open source).
http://www.castles-of-britain.com/mmf2examples.htm

Top
#164780 - 11/04/09 02:13 PM Re: Quick question [Re: nivram]
imamariobro


Registered: 12/07/07
Posts: 40
Loc: United States
Actually, I don't want him to just flinch back/forward, I want him to slide back temporarily.
_________________________
Please disregard my bad grammar/punctuation in older posts.
I'm a novice game maker.

Top
#164809 - 11/04/09 05:33 PM Re: Quick question [Re: imamariobro]
nivram


Registered: 07/11/06
Posts: 1545
Loc: Bandon, OR
How about timer?

Bullit overlaps character
+Only one action when events loop
>Character: set alt value A to 1
>Set timer to 0

Timer is < 2
+ Character is facing right
+ Alt value A of character = 1
>Character: set X position to X position of character -1

Timer = 2
>Character: Set Alt Value A to 0

This will do a slide backwards. You can play around with timer.

Marv


_________________________
A decision making process is binary.

MMF2 Examples and games (open source).
http://www.castles-of-britain.com/mmf2examples.htm

Top


Site Links
Forum Index

Home Page
Online Store
Tutorials
Download Center
French Forum
Quick File Links
Multimedia Fusion 2
Updates - build 248
Standard Version
Developer Version

Extension Packs
Bonus Pack 1
Bonus Pack 2
z33z Extension Pack
LIJI Extension Pack

The Games Factory 2
Latest Update - build 248
Community Links
MFA Repository
GameBuilder
Klikdisc
The Daily Click
Madword Arcade

Extensions
Neatwares Extension List
Extension Updater

Lacewing & Moo Server
Klikfarm
Click Chat
8 People are chatting
Game Builder
Latest Game

Wheel of Words

Latest News
Blue Friends 1.4!
GameBuilder Chat BETA!
PRC BETA IS OUT!