Author Topic: Jump Refreshers  (Read 2707 times)

kilgour22

  • Cherry Eater
  • Posts: 82
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Firefox 29.0 Firefox 29.0
    • View Profile
  • Playstyle: Keyboard
Jump Refreshers
« on: June 03, 2014, 11:22:02 PM »
After a bunch of messing around, I haven't gotten anywhere with creating jump refreshers. Any help would be appreciated. The engine being used is Yuutu.
Don't let a spike ruin your day.

HAEGOE

  • Spike Dodger
  • Posts: 101
  • Why the *beep* they're not in puyo tetris?????????
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 35.0.1916.114 Chrome 35.0.1916.114
    • View Profile
  • Playstyle: Keyboard
Re: Jump Refreshers
« Reply #1 on: June 03, 2014, 11:30:02 PM »
Here's a Jump Refresher code I used



if image_alpha = 1 {
if instance_exists(player){
player.djump = 1;
}
image_alpha = 0;
instance_create(x, y, JumpBonusText);
alarm[0] = 150;
}
//this means when player touch it, you can get player's djump to 1.

use this to when the jump refresher object collides to player, and if you need it for player2(reversed gravity) use that, and change 'player' to 'player2'

image_alpha = 1;

use this at alarm 0. This is for jump refresher's alpha being 1, which is for jump refresher being restored.

Sorry I couldn't make it simpler
a.k.a. tasteisgone
pronounciaton of HAEGOE is HAEGWE, not HAEGO.

I MAEK MBOILE GEAMS!
https://play.google.com/store/apps/details?id=com.Haegoe.MostPop


kilgour22

  • Cherry Eater
  • Posts: 82
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Firefox 29.0 Firefox 29.0
    • View Profile
  • Playstyle: Keyboard
Re: Jump Refreshers
« Reply #2 on: June 03, 2014, 11:50:36 PM »
Here's a Jump Refresher code I used



if image_alpha = 1 {
if instance_exists(player){
player.djump = 1;
}
image_alpha = 0;
instance_create(x, y, JumpBonusText);
alarm[0] = 150;
}
//this means when player touch it, you can get player's djump to 1.

use this to when the jump refresher object collides to player, and if you need it for player2(reversed gravity) use that, and change 'player' to 'player2'

image_alpha = 1;

use this at alarm 0. This is for jump refresher's alpha being 1, which is for jump refresher being restored.

Sorry I couldn't make it simpler

For whatever reason, this cloned the player every time I hit a jump refresher... I have the alarm 0 and a collision event with object player and the code being executed. Any ideas as to what could be causing it?
https://gyazo.com/4b7357e2070f0e76eaeb2a5ca6ef2fda
« Last Edit: June 04, 2014, 12:06:05 AM by kilgour22 »
Don't let a spike ruin your day.

HAEGOE

  • Spike Dodger
  • Posts: 101
  • Why the *beep* they're not in puyo tetris?????????
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 35.0.1916.114 Chrome 35.0.1916.114
    • View Profile
  • Playstyle: Keyboard
Re: Jump Refreshers
« Reply #3 on: June 04, 2014, 01:37:12 AM »
Oh, Sorry.

if image_alpha = 1 {
if instance_exists(player){
player.djump = 1;
}
image_alpha = 0;
alarm[0] = 150;
}

use this instead. I forgot to delete the code to create an object for extra jump restored effect.
a.k.a. tasteisgone
pronounciaton of HAEGOE is HAEGWE, not HAEGO.

I MAEK MBOILE GEAMS!
https://play.google.com/store/apps/details?id=com.Haegoe.MostPop


kilgour22

  • Cherry Eater
  • Posts: 82
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Firefox 29.0 Firefox 29.0
    • View Profile
  • Playstyle: Keyboard
Re: Jump Refreshers
« Reply #4 on: June 04, 2014, 03:09:51 PM »
Oh, Sorry.

if image_alpha = 1 {
if instance_exists(player){
player.djump = 1;
}
image_alpha = 0;
alarm[0] = 150;
}

use this instead. I forgot to delete the code to create an object for extra jump restored effect.
Thank you! Worked perfectly. :BloodTrail:
Don't let a spike ruin your day.