Jump to content


Fira

Member Since 29 Jun 2006
Offline Last Active Yesterday, 11:56 PM

Topics I've Started

I Can Not Load Sprites Made With Game

21 May 2013 - 07:54 PM

Here is what I do:

 

#1: I make a Game Maker 7.0 game

with S press event:

var save_name;
save_name = get_string("save as what",0);
screen_save_part(save_name,self.x,self.y,self.sprite_width,self.sprite_height);

example save_name = j.png

 

 

#2: Use Game Maker 7.0 to try to load j.png

as a Sprite (in the program) but it says something like can not load particular file.

 

 

 

Why can't I load for example j.png, j.gif etc.?


Image_Index Decreases But Not Increases

21 May 2013 - 07:15 PM

I am using Game Maker 7.0 Lite Edition

A: Works B: does not work

 

 

A:

if (keyboard_check(vk_control))
{
  if (not image_index = 0)
  {
    image_index -= 1;
    show_message(string(image_index));
  }
  else if (image_index = 0)
  {
    image_index = 3;
    show_message(string(image_index));
  }
}

 

 

 

 

B:

if (keyboard_check(vk_control))
{
  if (not image_index = 3)
  {
    image_index += 1;
    show_message(string(image_index));
  }
  else if (image_index = 3)
  {
    image_index = 0;
    show_message(string(image_index));
  }
}

I Am Looking For Tutorial, Example Etc. Thread

21 May 2013 - 06:21 PM

I have heard of some lite lighting examples where do they exist (gmc.yoyogames.com/....) please? Thank you.


In Game Maker 7.0 (Not Game, Program) How Do I*

21 May 2013 - 06:07 PM

*Get it to where say an image is 32 by 32

#1: I shrink it down to 1 by 1

#2: I unshrink it back to 32 by 32 but it appears to exact same as it did before I shrank it down to 1 by 1

please? Thank you.


Images Are Not Appear How And When I Want Them

21 May 2013 - 05:44 PM

I am using Game Maker 7.0 Lite Edition
sprite0 has image0 image1 image2 image3
image4 image5 image6 image7
image8 image9 image10 image11
image12 image13 image14 image15


I want it to where
if image_set_range = 0


if image_index > 3
image_index = 0;
image_speed = 0.10;


if image_index < 0
image_index = 0;
image_speed = 0.10;


but image_index can not go higher than 3
and not lower than 0
.


However
if image_set_range > 0


if image_index > image_set_range*4+3
image_index = image_set_range*4
image_speed = 0.10


if image_index < image_set_range*4
image_index = image_set_range*4
image_speed = 0.10


but image_index can not go higher than image_set_range*4+3
and not lower than image_set_range*4


Here is what I have so far

Information about object: object0

Sprite: sprite0
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>

Create Event:
execute code:

/*
image_set_range will be used to use
*/
image_set_range = 0;

 Step Event:
execute code:

if (image_set_range = 0)
{
  if (image_index > 3)
  {
    image_index = 0;
    image_speed = 0.10;
  }
  if (image_index < 0)
  {
    image_index = 0;
    image_speed = 0.10;
  }
}
else if (image_set_range > 0)
{
  if (image_index < image_set_range*4)
  {
    image_set_range = image_set_range*4;
    image_speed = 0.10;
  }
  if (image_index > image_set_range*4+3)
  {
    image_set_range = image_set_range*4;
    image_speed = 0.10;
  }
}

Key Press Event for <Left> Key:
execute code:

if (not image_set_range = 0)
{
  image_set_range -= 1;
}
else if (image_set_range = 0)
{
  image_set_range = 3;
}

Key Press Event for <Right> Key:
execute code:

if (not image_set_range = 3)
{
  image_set_range += 1;
}
else if (image_set_range = 3)
{
  image_set_range = 0;
}