The Daily Click ::. Forums ::. Klik Coding Help ::. Problem with My Final Project
 

Post Reply  Post Oekaki 
 

Posted By Message

Gamemaker2010



Registered
  22/10/2008
Points
  31
2nd December, 2008 at 04:15:46 -

i use the default. i adjust a few sliders like gravity and jump strength though.

 
Whats a goon to a GOBLIN?

Gamemaker2010



Registered
  22/10/2008
Points
  31
8th December, 2008 at 02:02:47 -

I really appreciate the help ive been getting but i got more problems.
1) So does anyone know how to "Push" my character up and back when he gets hit. Im using default platform movement.
2) I have a health pack feature in the game but i have problems with that too. Here is what i've got. YOu get 3 packs. When youuse one you get a health boost. How do i make it so that when you have zero you cant get anymore health. Right now i have it working but if you press the button and you have none left you still get health. Someone help please!


 
Whats a goon to a GOBLIN?

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
8th December, 2008 at 02:48:43 -

2) Just add a condition to the event that says "Number of Health Packs > 0"

I moved away from the default platform movement, because of this specific issue. I don't know how to help you.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Gamemaker2010



Registered
  22/10/2008
Points
  31
8th December, 2008 at 22:06:40 -


Originally Posted by Jon Lambert
2) Just add a condition to the event that says "Number of Health Packs > 0"
I moved away from the default platform movement, because of this specific issue. I don't know how to help you.






Here is what i have for my helathpack. Im a bit confused

Healthpack > 0 then Global value D =1
Global Value D= 1, Upon pressing"0" then Subract 1 from health counter, and add 1 to player 1 health.
Healthpacks = 0 then Global value D = 0
Global Value D= 0 then This is where im stuck

 
Whats a goon to a GOBLIN?

[DELETED]

Likes to put dots on paper

Registered
  08/12/2008
Points
  118

MushroomVIP MemberARGH Sign
8th December, 2008 at 22:23:46 -

Why are you using a global value? Is this some sort of flag to tell MMF that there are either some or none at all? I don't see why this can't be done with just one event.

Event: Player presses "Use healthpack key"
Condition: Healthpack counter > 0
Action: Subtract 1 from healthpack counter, add 1 to player health.

It's saying, if the player presses the key and there is actually more than zero healthpacks, then the player can use one and it will subtract one of the healthpacks for you. If there is 0 left, the condition is void and therefore the event is useless and the action will not take place.

 
n/a

Gamemaker2010



Registered
  22/10/2008
Points
  31
9th December, 2008 at 04:13:25 -


Originally Posted by jthongbai
Why are you using a global value? Is this some sort of flag to tell MMF that there are either some or none at all? I don't see why this can't be done with just one event.

Event: Player presses "Use healthpack key"
Condition: Healthpack counter > 0
Action: Subtract 1 from healthpack counter, add 1 to player health.

It's saying, if the player presses the key and there is actually more than zero healthpacks, then the player can use one and it will subtract one of the healthpacks for you. If there is 0 left, the condition is void and therefore the event is useless and the action will not take place.


Thanks i guess i just made it more complicated than it should have been

 
Whats a goon to a GOBLIN?

[DELETED]

Likes to put dots on paper

Registered
  08/12/2008
Points
  118

MushroomVIP MemberARGH Sign
9th December, 2008 at 06:05:03 -

It's easy to do that
When I first started using TGF and MMF, it took me a long time to become competent at using less events to achieve more actions. After a while I just got used to the way the program works and you try to cram as much as you can into events. (Sometimes biting off more than you can chew )

 
n/a

Gamemaker2010



Registered
  22/10/2008
Points
  31
10th December, 2008 at 01:10:26 -

In my game i have an event to destroy the bullet it goes like this.
When bullet exits screen to the right then destroy bullet.
The problem is the bullet keeps on going and kills enemies you aren't supposed to see yet. Is there another way?

 
Whats a goon to a GOBLIN?

[DELETED]

Likes to put dots on paper

Registered
  08/12/2008
Points
  118

MushroomVIP MemberARGH Sign
10th December, 2008 at 05:00:22 -

Theoretically, that sounds correct. Maybe try just "Bullet leaves the play area" and destroy it.

 
n/a

RedEnchilada

formerly RedEchidna

Registered
  01/08/2008
Points
  301

VIP MemberWii OwnerThe Cake is a LiePicture Me This Round 24 Winner!
10th December, 2008 at 23:41:50 -

That doesn't just check the window, though. Use "Bullet is -5 pixels from the edge of the window" instead.

 
http://www.youtube.com/watch?v=WYrSD35vHo4
woooooooooooooooooaah maaaaaaaaaaaaaaaaaaaaan

Gamemaker2010



Registered
  22/10/2008
Points
  31
11th December, 2008 at 03:09:35 -


Originally Posted by RedEchidna
That doesn't just check the window, though. Use "Bullet is -5 pixels from the edge of the window" instead.


okay cool but how do i test that it is 5 pixels from the game's window?

 
Whats a goon to a GOBLIN?

Gamemaker2010



Registered
  22/10/2008
Points
  31
16th December, 2008 at 01:21:31 -

Is it possible to make a backdrop scroll, i know with an active object you just check the "Follow The Frame" box but a backdrop doesn't have that. There is an awesome backdrop of a sunset in the multimedia disc library but it cant scroll with the game. I tried copying the image and then pasting it as an active object but that makes it look weird and distorts it. Can Somebody Please Help?


 
Whats a goon to a GOBLIN?

RedEnchilada

formerly RedEchidna

Registered
  01/08/2008
Points
  301

VIP MemberWii OwnerThe Cake is a LiePicture Me This Round 24 Winner!
16th December, 2008 at 17:42:53 -


Originally Posted by Gamemaker2010

Originally Posted by RedEchidna
That doesn't just check the window, though. Use "Bullet is -5 pixels from the edge of the window" instead.


okay cool but how do i test that it is 5 pixels from the game's window?



Condition: Object: Position - Is Object getting close to window's edge

Put -5 in the box.

 
http://www.youtube.com/watch?v=WYrSD35vHo4
woooooooooooooooooaah maaaaaaaaaaaaaaaaaaaaan
   

Post Reply



 



Advertisement

Worth A Click