sprite resizing

Ideas for Game Editor evolution.

sprite resizing

Postby Fojam » Sat Sep 17, 2011 7:37 pm

can we add a feature to resize a sprite after you have added into the game? just so we dont have to manually scale sprites in mspaint
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: sprite resizing

Postby skydereign » Sat Sep 17, 2011 8:41 pm

Well, we can't directly resize individual sprites, but in 1.5 you can resize actors. So that'll achieve the same thing, and it has already been implemented in 1.5.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: sprite resizing

Postby Game A Gogo » Sat Sep 17, 2011 9:11 pm

meanwhile, you can use a canvas and use the draw_from function to draw an existing actor with different scales. Reffer to the documentation if you need help with the function, or click on the variable/function button so it'll give you a parameter window
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: sprite resizing

Postby Fojam » Sun Sep 18, 2011 2:16 am

to skydereign, how do you resize the actors?
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: sprite resizing

Postby skydereign » Sun Sep 18, 2011 3:47 am

In gE 1.5? You use SetScale, which is a function that changes the actor's size. Mind you this only works with the physics version of gE. If you want to use canvas, you can use draw_from, as follows.
canvas -> Draw Actor -> Script Editor
Code: Select all
erase(0,0,0,1);
draw_from("actor", width/2, height/2, 2);

What this does is draw actor at a scale of 2 in the middle of the canvas. You could move the canvas around to use this, or offset where the actor is drawn.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest